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
Post a Comment