Skip to main content

Bug Tracker

Side navigation

#11545 closed bug (invalid)

Opened April 02, 2012 04:10PM UTC

Closed April 03, 2012 11:32PM UTC

Last modified April 04, 2012 12:19AM UTC

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:
Description

Hi,

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

Attachments (0)
Change History (2)

Changed April 03, 2012 11:32PM UTC by sindresorhus comment:1

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.

Changed April 04, 2012 12:19AM UTC by dmethvin comment:2