Bug Tracker

Modify

Ticket #7811 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

populating hidden form fields in IE6

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

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.

Change History

comment:1 Changed 2 years ago by jitter

  • Owner set to colm.mcbarron@…
  • Status changed from new to pending

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

comment:2 Changed 2 years ago by rwaldron

  • Status changed from pending to closed
  • Resolution set to worksforme

Following your use case, I cannot reproduce a bug

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.