133
rated 0 times
[
139]
[
6]
/ answers: 1 / hits: 22993
/ 14 Years ago, tue, january 25, 2011, 12:00:00
I have a hidden form field:
<input type=hidden id=blah1 value=true />
I have abutton, when clicked I do:
$(#b1).bind(click, function(){
$(#blah1).attr(value, false);
});
But when I get the form value on the server side, it is 'true'.
Am I doing something wrong?
I even did this:
e.preventDefault();
$(#blah1).attr(value, false);
alert( $(#blah1).attr(value) );
It alerted the value 'false'.
More From » jquery