User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:18.104.22.168) Gecko/2008070208 Firefox/3.0.1 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:22.214.171.124) Gecko/2008070208 Firefox/3.0.1 (.NET CLR 3.5.30729) <input type="checkbox" onclick="$('SubmitPayment').submit();" name="foo" value="bar" id="myid checked="true"/> Reproducible: Always Steps to Reproduce: 1. <input type="checkbox" onclick="$('SubmitPayment').submit();" name="foo" value="bar" id="myid checked="true"/> 2. click the checkbox Actual Results: post data does no contain name value pair Expected Results: post data does contain name value pair Plugin Firebug and LiveHTTPHeader and WebDeveloper are installed
Seems to be problems in the html code you included in the initial comment and it doesn't match what you put in the bug summary. But taking a rough guess, doesn't clicking on a checkbox unselect it, that it also submits it is perhaps a side issue. Are you somehow expecting that clicking it should submit and not behave like a normal checkbox?
Yes, you are right. It is a valid checkbox. The toggling should occur. I do not want to prevent it. Its not my problem. I just want to persist the clicking on server side. The name value pair is not transmitted. But it works if cheched="checked" is not given.
Well that would be because clicking on the checkbox checks it and submits the form. I tend to think that this is invalid.
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → form-submission
Summary: input type="selectbox" onclick="<name>.submit();" does submit name and value if checked="checked" → checkbox does submit name and value if checked and a click submits the form
Version: 3.0 Branch → 1.9.0 Branch
Activating works. It is is already checked. checked=checked. Clicking in this state is a problem on my side. Then the checkbox is submitted, but the name and value is not transmitted.
You need to log in before you can comment on or make changes to this bug.