The following is a jquery code that would run when a check box is clicked… But right now I need to assign an id for the input type ,so that this function should work work only for that particular id, what could be the solution?
<!-- HTML PART -->
<li><input id='checkbox' type='checkbox' value='1' checked="checked" /> </li>
<!-- JQUERY PART -->
$("input[type=checkbox]").click(function(){
var count=$("input:checked").length;
if(count==5)
{
$('input[type=checkbox]').not(':checked').attr("disabled",true);
}
else
{
$('input[type=checkbox]').not(':checked').attr("disabled",false);
}
save_skills();
get_skill();
});
If I’m not misunderstood.
Or