(I ask my question again after the first one was terribly formulated) I face the following problem: <div class=\"testA\" id=\"test1\"></div>
How can I use JavaScript (no JQuery) to traverse through a bunch of DIVs that has a common class, then check the value within the <span> tag, base on the value, change the href value to somethin
I have a page that has a few links that I would like to be able to toggle with two buttons. It works with one link, using getElementById, but I need to toggle a few groups of them. I started with this
This should be a simple one, and yet I need help to solve the problem: I need to remove the element with the class \"goup\" on it from the DOM tree
<ul> <li> <div class=\"time\"> at 2011-02-05 17:44:28</div开发者_如何学运维></li>
In jQuery it would simply be $(\"a.class\").randommethod(); or $(\".class1 .class2\").randommethod(); How do I achieve the same effect using pure Javascript? (I\'m editing a open-source softwar
Im looking to do something simple and the site is not heavy with js so im not using a js framework for this.
I have a span: <span class=\"attr attr-value\">Brand Name</span> And I wa开发者_运维问答nt to replace that text with an image, based on the text
function setHeight() { var iframes = parent.document.getElementsByClassName(\'targetIframe\'); for(var i = 0; i < iframes.length; i++)
I have a form with 26 questions, all of which have radio button groups as an answer choice for the user (it calculates the risk factor for a specific invasive plant species on a given property). At th