Skip to main content

Bug Tracker

Side navigation

#7811 closed bug (worksforme)

Opened December 20, 2010 10:44AM UTC

Closed December 20, 2010 05:21PM UTC

populating hidden form fields in IE6

Reported by: colm.mcbarron@iqcontent.com Owned by: colm.mcbarron@iqcontent.com
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

Hi there,

I've discovered what I believe is a jQuery bug.

On one of our pages we inject HTML which includes some hidden form elements (type=hidden). These are then populated from another field on the page.

When I try to locate these form fields with a standard selector $('#myform-wrapper #hidden_field1') they come up as 'undefined' in IE6, but work just fine in other browsers. I've put a work around in place by doing a loop as follows

$.each($('#myform-wrapper input:hidden'), function(){

if ($(this).attr('id') == 'myid') {

// do my stuff.

}

});

This is obviously not ideal, the selector should really work here.

Attachments (0)
Change History (2)

Changed December 20, 2010 02:12PM UTC by jitter comment:1

owner: → colm.mcbarron@iqcontent.com
status: newpending

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further.


How to report bugs

Changed December 20, 2010 05:21PM UTC by rwaldron comment:2

resolution: → worksforme
status: pendingclosed

Following your use case, I cannot reproduce a bug

http://jsfiddle.net/rwaldron/DLYJC/1/