Closed jejelava closed 4 years ago
How to limit select options limit? example how to i can limit checking only 3 car make if i have i option select 100 make? like here? but in sol.js :)
if ($(this).val().length > 3) { alert('You can only choose 3!'); $(this).val(last_valid_selection); } else { last_valid_selection = $(this).val(); } }); });
How to limit select options limit? example how to i can limit checking only 3 car make if i have i option select 100 make? like here? but in sol.js :)
if ($(this).val().length > 3) { alert('You can only choose 3!'); $(this).val(last_valid_selection); } else { last_valid_selection = $(this).val(); } }); });