Home › Forums › Quform WordPress › Limiting selections in the browser
hi, there is an identical topic to this, the issue is that the code doesnt work for me,
var last_valid_selection = null; $(‘.quform_4_141’).change(function(event) { if ($(this).val().length > 2) { alert(‘You can only choose 2!’); $(this).val(last_valid_selection); } else { last_valid_selection = $(this).val(); } });
thats the code from the one above and it doesnt help me limit user selections to a maximum of 2
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.