Wednesday, 29 May 2013

Checklist box and radio button validatation using jquery

var v = $("[id$=rdgroup]").find("input:checked").length;

if (v == 0) {alert(
'Please select atleast one group');
return false;}

var v2 = $("[id$=chkPlant]").find("input:checked").length;
if (v2 == 0) {alert(
'Please select atleast one plant');
return false;}

No comments:

Post a Comment