Here we can do, copy this jquery plugins :
jQuery.fn.maxLength = function(max){
this.each(function(){
//Get the type of the matched element
var type = this.tagName.toLowerCase();
//If the type property exists,...
Here we can do with jquery, check all checkbox with name parameters :
sample code :
function checkallitems(){
var arr=$("input']");
if($('#contestall').attr('checked')==true){
for(var i=0;i<arr.length;i++){
$(arr).attr('checked','checked');
}
}else{
for(var i=0;i<arr.length;i++){
$(arr).attr('checked',false);
}
}
}
note :
contest is the name of...