Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14171 closed bug (notabug)

.val(var) does not trigger .change

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

Description

I don't know if this is intentional or a bug. Just thought I would let you know about this. The .change event does not trigger when .val(var) is used on the same id.

For demo http://jsfiddle.net/khadkara/777Zs/1/

Change History (2)

comment:1 Changed 7 years ago by scottgonzalez

Resolution: notabug
Status: newclosed

This is how the DOM works. You'd get the exact same behavior if you set the value directly without using jQuery.

In the future, if you're not sure if something is a bug, you should ask on the forums or IRC first.

comment:2 Changed 7 years ago by timmywil

#14172 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.