Skip to main content

Bug Tracker

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:

http://jsfiddle.net/Mbzc6/1/

Attachments (0)
Change History (1)

Changed February 25, 2011 06:44PM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Seems to be working as documented. Submit buttons are not <input type=button> or <button> elements, try :submit instead:

http://api.jquery.com/button-selector/