Hello Forums.
I’m trying to replace a p- classed element using jquery replaceWith() function but somehow it doesn’t work in IE only (IE sucks!)
var latest = $("#msg").val();
$("div#mess .wenks").replaceWith("<p class=\\"wenks\\">"+latest+"</p>");
Here is the link to my work file please have a look I must be missing something real significant here.
http://www.i-mediaconcepts.net/jq
I want to replace <p class=“wenks”>content</p> inside the #mess div with the latest entry.
Thanks
PS: this is from the sitepoint articles: Easy Ajax with JQuery http://articles.sitepoint.com/article/ajax-jquery/2