Jump to content

check all or uncheck all in multi checkbox


GoldSoft

Recommended Posts

i have this code for multi check-box

<fieldset data-role="collapsible"><legend>Pick one</legend><div data-role="controlgroup" id="ZIBI" align="right" ></div></fieldset>myArray1 = new Array("1","2","3","4","5","6");$("#ZIBI").html('');for (var i = 0; i < myArray1.length; i++) {row = myArray1[i];$("#ZIBI").append('<label for=' + row + '>' + row + '</label>' +'<input type="checkbox" name="favcolor" id=' + row + ' value=' + row + '>');}$('#ZIBI').trigger('create');

how to check all or uncheck all by pressing any button ?

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...