I’m trying to get my checkbox to submit the form it is in using the below code:
@Html.CheckBox(“Completed”, new { onclick = “$(this).parent(‘form:first’).submit();” })
It keeps rendering the ‘ around ‘form:first’ as html encode values though. Any ideas how to fix this?
Thanks
Nick
why not just wire it up with a jquery click event??
then in your js code…