Modify ↓
Ticket #8944 (closed bug: worksforme)
jQuery("#A").html(htmlStr) doen´t work in IE
| Reported by: | wanapito@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.4.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by addyosmani) (diff)
Hello,
The function jQuery("#results").html(htmlStr) doesn´t work in any version of Internet Explorer. I have to change for document.getElementById('results').innerHTML = htmlStr;, this work in all navegators.
Bye,
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.

Thanks for submitting a ticket to the jQuery Project! I've created a test case here and verified that this is working absolutely fine in IE6, 7 and 8 (haven't tested 9 but I'm quite sure it works there too). http://jsfiddle.net/addyosmani/zds3H/ Just for the sake of thoroughness (they're effectively the same) here's a test case using 'jQuery(selector)' rather than '$(selector)' as well http://jsfiddle.net/addyosmani/xrqJV/. This too is working fine across all versions. Please re-check your code.