140
rated 0 times
[
143]
[
3]
/ answers: 1 / hits: 48444
/ 12 Years ago, thu, may 3, 2012, 12:00:00
I am used to doing this in jQuery
$('#RememberMe').attr('checked', true);
but I can't remember how to do it in Javascript I thought that
document.getElementById(RememberMe).value = True;
would work, but it doesn't, it changes the value but does not create the visual check on the html.
I am trying to set the checkbox to on by default. here is the html
<input id=RememberMe name=RememberMe type=checkbox value=false />
More From » jquery