<script type="text/javascript" language="javascript">
//Count the Total Selection in CheckBoxList - BusinessType
$('#<%= cblBusinessType.ClientID %>').find('input:checkbox').click(function()
{
var totCount=0;
jQuery('#<%= cblBusinessType.ClientID %>').find("input:checkbox").each(function() {
if (jQuery(this).attr("checked"))
{
totCount++;
}
});
if(totCount > 3)
{
alert("Select up to 3 Business Types only...");
return false;
}
return true;
});
</script>
13 Oct 2011
limit the no of items user can check in ckeckboxlist using jquery
Subscribe to:
Post Comments (Atom)
-
Introduction If you follow the various newsgroups on Microsoft SQL Server, you often see people asking why they can't do: SELECT * FROM...
-
Introduction The SAP .Net Connector is a software component supplied by SAP that makes it possible to communicate between an SAP host and ...
-
Many times I found that the Reporting service is configured to access as "Anonymous Access", so any user having URL can access r...
No comments:
Post a Comment