Skip to main content

Bug Tracker

Side navigation

#7410 closed bug (duplicate)

Opened November 05, 2010 09:08AM UTC

Closed March 30, 2011 07:32PM UTC

Last modified March 30, 2011 07:32PM UTC

cannot change input value in a variable

Reported by: anonymous Owned by:
Priority: low Milestone:
Component: attributes Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

I have a variable: var jObj;

Trying to change value with:

$('input[name=something]', jObj).val('12345');

I can read back the right value:

alert( $('[name=retry]', jObj).val() );


alert( $('<p />').append(jObj).html() ) shows <input name="something" value="" />

Note: I can modify all attriubte of input except value!!

Attachments (0)
Change History (4)

Changed November 05, 2010 02:54PM UTC by boushley comment:1

I've created a jsFiddle to show this test case There is some interesting behavior happening with manipulating the value in memory vs what happens when it's added to the dom or another element.

Changed November 05, 2010 05:32PM UTC by rwaldron comment:2

component: unfiledattributes
priority: undecidedlow
status: newopen

Changed March 30, 2011 07:32PM UTC by rwaldron comment:3

resolution: → duplicate
status: openclosed

Changed March 30, 2011 07:32PM UTC by rwaldron comment:4

Duplicate of #1536.