0
how to set limit for select tag in jQuery
Max 10
2 Respostas
+ 3
shu
Hi shu ,
You can do this by adding this lines of Jquery
$("select").on('change', function(t) {
if (Object.keys($(this).val()).length <10) {
$('option[value="' + $(this).val().toString().split(',')[10] + '"]').prop('selected', false);
}
});
If you need any more help ping me
Have this till that 🍎 🍎 🍎 🍎 🍎
0
Thanks Disha