getelementsbyclassname
getElementsByClassName returns [] instead of asynchronous appended node
(I ask my question again after the first one was terribly formulated) I face the following problem: <div class=\"testA\" id=\"test1\"></div>[详细]
2023-04-09 10:28 分类:问答How to get childnode value & change value
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[详细]
2023-04-04 17:11 分类:问答What is an alternative to using getElementByClass for hiding multiple elements?
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[详细]
2023-04-01 18:25 分类:问答remove p element from DOM tree with javascript
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[详细]
2023-03-07 11:36 分类:问答simple dom class selector
<ul> <li> <div class=\"time\"> at 2011-02-05 17:44:28</div开发者_如何学运维></li>[详细]
2023-02-09 00:42 分类:问答How do I select class within a class or a tag using Javascript getElementsByClass() function?
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[详细]
2023-02-02 23:05 分类:问答javascript: getElementsByClass
Im looking to do something simple and the site is not heavy with js so im not using a js framework for this.[详细]
2023-02-01 11:55 分类:问答Replace Text with Image - JavaScript (getElementsByClass)
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[详细]
2023-01-31 04:55 分类:问答How to rewrite this javascript function with jQuery?
function setHeight() { var iframes = parent.document.getElementsByClassName(\'targetIframe\'); for(var i = 0; i < iframes.length; i++)[详细]
2023-01-26 21:28 分类:问答Iterating through specific radio groups only, within a larger set of radio groups
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[详细]
2023-01-18 15:38 分类:问答