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.
I want to replace <p class="wenks">content</p> inside the #mess div with the latest entry.
PS: this is from the sitepoint articles: Easy Ajax with JQuery http://articles.sitepoint.com/article/ajax-jquery/2
Nevermind I got it I installed the developer's tool on IE and found out the string to replace is empty and I need to put replace function before