In a javascript function I'm getting the variable this way:
var aFunction = document.getElementById('myinput');
If aFunction is not null then I need to call the function stored on it, in other words, I need to call
"doSomething();"
.
The problem is that the value of 'myinput' is variable and at this point I don't know it.
I wonder if there is a way to do something like this in javascript.
Thank you for any suggestion.
Discuss This Question: 1  Reply