I want to know if there is a way to getElementByClassName(\"classname\").innerHTML function or something to the equivalent of getElementById(\"ClassName\"
getElementByClassName(\"classname\").innerHTML
getElementById(\"ClassName\"
If tou use jQuery you can get it as you would in a CSS selector so:
then...
$('.classname').each(function() { // get html $(this).html(); // set html $(this).html('something'); });
Notice you have also convenient way to manage innerHTML.