Modify ↓
Ticket #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: | ||
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.