Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  31] [ 5]  / answers: 1 / hits: 103394  / 13 Years ago, wed, june 22, 2011, 12:00:00

I have a MVC3 app using Project Awesome (http://awesome.codeplex.com/), but I am getting a weird behaviour on checkboxes. I have the following simple Html within a Modal popup <input type=checkbox class=check-box name=IsDeleted>



When I submit the form containing this element, its post value is 'on' instead of the expected 'true' (when element is checked).



Does anybody know why this is? I am assuming there may be some javascript somewhere messing with the form data, but wanted to check whether there isn't some HTML I am missing.



Thanks


More From » jquery

 Answers
0

Set the checkboxes value attribute to true and you will get true in your post value.


[#91566] Tuesday, June 21, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
byrondonavanc

Total Points: 675
Total Questions: 107
Total Answers: 105

Location: Peru
Member since Fri, Oct 14, 2022
2 Years ago
byrondonavanc questions
;