...

View Full Version : Prototype equivalent to JQuery $(this).text()



khawar
08-26-2009, 10:47 AM
Hi,

I am trying to covert a JQuery script to prototype. Here is the line I am having difficulty with:

$('body').removeAttr('class').addClass($(this).text());

I am unable to find equivalent to $(this).text().

khawar
08-26-2009, 03:34 PM
OK, I was able to get the same result using the following in prototype:


$(document.body).addClassName($(this).innerHTML);
Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum