getelementsbyclassname Questions

3

Solved

I tried to print the list of attributes values in a specific CSS class with the getElementsByClassName method like below : <html> <head> <style> .toto { width:200px; height:...
Stercoraceous asked 14/1, 2013 at 12:11

3

Solved

I can't figure out how to use multiple IDs in JavaScript. No problem with single ID and getElementById, but as soon as I change IDs to class and try using getElementsByClassName the function ...
Disjoint asked 3/1, 2013 at 16:11

4

Solved

I know, it's not supported by IE, but I found a cool script online that someone was generous enough to provide for free, but I can't figure out why it's not working. I've been staring at this for h...
Dumont asked 6/11, 2012 at 10:35

6

Solved

I am having issues figuring out how to resolve the getElementsByClassName issue in IE. How would I best implement the robert nyman (can't post the link to it since my rep is only 1) resolution into...
Wagers asked 9/12, 2010 at 23:20

3

Solved

Consider a simple JS event of document.getElementsByClassName('test')[0].onclick=function(){ document.getElementsByClassName('test')[0].innerHTML = 'New Text'; } How can I extend this code to gene...

2

Solved

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 with javascript (eventually with prototype, but no ...
Bojorquez asked 19/5, 2011 at 9:22

2

Solved

Updated title to better reflect what I'm trying to do. In short, there are different constructors for different dom elements, and they don't seem to all share a common prototype. I'm looking for a...
Labiate asked 6/9, 2010 at 19:15

© 2022 - 2024 — McMap. All rights reserved.