Results 1 to 2 of 2
Jul 14, 2010, 06:35 #1
jQuery replace with not working in IE
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/2Don't Panic
Jul 14, 2010, 07:57 #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
Cheers !Don't Panic