Side navigation
#8385 closed bug (worksforme)
Opened February 25, 2011 05:03PM UTC
Closed February 25, 2011 06:44PM UTC
:button selector disregards submit button
| Reported by: | mikepodonyi@gmail.com | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
Expected behaviour:
The following Selector should set the value of all input elements to empty (except all buttons)
$(':input:not(:button)').val("");
actual behaviour:
The value of submit buttons get erased.
Here a link to jsfiddle:
Attachments (0)
Change History (1)
Changed February 25, 2011 06:44PM UTC by comment:1
| resolution: | → worksforme |
|---|---|
| status: | new → closed |
Seems to be working as documented. Submit buttons are not
<input type=button>or<button>elements, try:submitinstead:http://api.jquery.com/button-selector/