I have a multiple selection list which have more than 5 options. But i want to restrict the selection of the options to 2 or 3 options. How to do it using jquery? How to get
var n = $("input:checked").length; see this for more detail: http://api.jquery.com/checked-selector/
var n = $("input:checked").length;