jcanker Posted February 14, 2011 Share Posted February 14, 2011 I'm creating some <div>s based on returned data. The text shows up where it's supposed to, but if I select "View Source" in IE8 (haven't tried on FF, Chrome, etc yet) The div's don't appear. What gives? Why isn't the view source showing the updated DOM doc? $("#centerColumn").empty(); var customerOutput = '<div id="customerInfo"><div id="busname">Customer Name: '+$(this).find("busname").text()+'</div></div>'; customerOutput +='<div id="buscode">Buscode: '+$(this).find("buscode").text()+'</div>'; $(customerOutput).appendTo("#centerColumn"); Quote Link to comment https://forums.phpfreaks.com/topic/227603-jquery-appendto-not-appearing-in-view-source/ Share on other sites More sharing options...
trq Posted February 14, 2011 Share Posted February 14, 2011 That is how Javascript works (and is not jQuery specific). It doesn't actually manipulate the html, but the DOM stored within the browser itself. Get yourself Firebug and you will be able to see what the code would look like after the DOM has been manipulated. Quote Link to comment https://forums.phpfreaks.com/topic/227603-jquery-appendto-not-appearing-in-view-source/#findComment-1173942 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.