Quick version I found a bug in IE8 when adding a form to the DOM using jQuery, fortunately there is a simple solution, unfortunately it took a while to stumble upon it. Background Whilst implementing a new in-page contact form for limethinking.co.uk I ran into a bug with Internet Explorer 8. Unexpectedly though it worked [...]
Posts Tagged ‘dom’
jQuery: Manipulating an Ajax response before inserting it into the DOM
March 4th, 2011
2 Comments
Quick gotcha – well it got me anyway. I was manipulating an HTML response from an Ajax request with jQuery before inserting it into the DOM but my changes were not making it into the DOM. My code looked something like this simplified example: $.get(’/some-url/’, function(data) { $(data).find(’#someDiv’).append(’<p>Some Text</p>’); $(’body’).append($(data)); }); The problem is is [...]


