Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10548 closed bug (invalid)

val(value) does not send change events

Reported by: slinkp@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:

Description

See http://api.jquery.com/val/#comment-117202237 This is rather surprising.

It's possible to work around in your own code by manually sending the event, but this may not be possible if the relevant val(value) call is in third-party code. (For example: I want to trigger a function whenever a Calendrical widget updates a date input field, and I can't.)

Change History (1)

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

The browser's native behavior is to *not* fire events when the value property is changed. Thus we'd be introducing a difference from native behavior. Also, it would mean that changing the value of an input within the change event handler (for example, reformatting it) would cause infinite recursion.

Note: See TracTickets for help on using tickets.