javascript - change innerHTML with text on squarespace -


i'm trying take "sold out" on this page , change "coming soon."

right have following it's not working.

window.onload = function() {   document.getelementsbyclassname("product-mark sold-out").innerhtml = "coming soon"; }; 

window.onload = function(){      //this captures elements spec classes      var solditems = document.getelementsbyclassname('product-mark sold-out');       //this changes each element 1 1 new text         for(var i=0; i<solditems.length; i++){            solditems[i].innerhtml = "coming soon";         }  } 

that should take care of it!


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -