Bug Tracker

Modify

Ticket #11545 (closed bug: invalid)

Opened 15 months ago

Last modified 15 months ago

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:
Blocking: Blocked by:

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

Change History

comment:1 Changed 15 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

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.

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.