Skip to main content

Bug Tracker

Side navigation

#14171 closed bug (notabug)

Opened July 23, 2013 04:43PM UTC

Closed July 23, 2013 04:44PM UTC

Last modified July 23, 2013 04:47PM UTC

.val(var) does not trigger .change

Reported by: rabindra46@gmail.com 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/

Attachments (0)
Change History (2)

Changed July 23, 2013 04:44PM UTC by scottgonzalez comment:1

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.

Changed July 23, 2013 04:47PM UTC by timmywil comment:2

#14172 is a duplicate of this ticket.