Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11545 closed bug (invalid)

Jquery html() function doesn't work on IE 9 for select

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: manipulation Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:



Here is a simple test i've done on jsfiddle.

For html take that :

<td><select id='u_roles' name='u_roles'><option value='2'>Super Administrateur</option><option value='4'>C'est un test</option></select></td>

For js take that :

$('#u_roles').html("<select><option value='88'>dddd</option></select>");

It works on Firefox and Chrome but not on IE 9.

Regards, Jonathan

Change History (2)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: invalid
Status: newclosed

Please post a link to your jsfiddle testcase the next time.

Testcase: http://jsfiddle.net/mofle/PzaFs/

The reason it's not working is because you're trying to insert a <select> element into a <select> element.

Note: See TracTickets for help on using tickets.