I am using the jquery multiselect plugin. Right now I am checking if the user has selected any checkbox or not with the below code.
function fntemp()
{
var values = $("select").val();
alert(values);
if(!values){
alert("Please select atleast one value from the dropdown.");
}
}
But this does not work when we click “Check All” link. Any suggestions?
Looking at the documentation, you can get an array of all the checked checkboxes using
I assume you can therefore do something like: