Thanks for the reply
I just need a little different : I can't make two individual objects:
var obj1 = new customObject(document.getElementById("div1"));
var obj2 = new customObject(document.getElementById("div2"));
- the idea is that the number is fed dynamically to be used by the final functions
The reason why is that I have <div>iders numbered, I need to do certain things to each of them but the functions should be the same.
an example would be..
I'm not changing colours but I hope you understand what I mean.
changeFontColour() function has to be available to any number of Dividers, so whatever number I pass, the 'changeFontColour' must be able to access it.
In other words - the function changeFontColour (or whatever I call it) has to have access to the number somehow:
Say for example, a user chooses a divider by number:
var userChoice = parseInt( prompt("Choice?") ) ;