<SCRIPT language= "javascript" > $( function (){ // add multiple select / deselect functionality $( "#selectall" ).click( function () { $( '.case' ).attr( 'checked' , this .checked); }); // if all checkbox are selected, check the selectall checkbox // and viceversa $( ".case" ).click( function (){ if ($( ".case" ).length == $( ".case:checked" ).length) { $( "#selectall" ).attr( "checked" , "checked" ); } else { $( "#selectall" ).removeAttr( "checked" ); } }); }); </SCRIPT> |
Thursday, 11 April 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Leave a comment on blog quality.