I am trying to do a replaceWith(). My Statement looks like this –> $("div.ms-quickLaunch").replaceWith("http://wwcshare/icenter/config/wwcMenuControl.html");
Can I replace a div like that? right now it just puts the text there, “http://wwcshare/icenter/con….”.
How do I embed the contents of wwcMenuControl.html where the div ms-quickLaunch resides?
If you are trying to load the contents of the URL into the div then you can use:
Which uses AJAX to fetch the data at the URL and put it into your DIV.
However, there are restrictions for AJAX so the URL has to be from the same domain as the page.