If you call an OnClick how can you tell the name of the element passed to it.
I don't know the name of the element because it is generated in a loop. So is there way to pass the element like there is to pass which form. this.form
i'm not sure i understand your question
if you meant : how to pass an element when calling onclick on that element, the answer is : this
as in : <any_element onclick="any_function(this)">
any_function will receive any_element as a parameter
remember to test the type of any_element before doing anything with it - just to make sure it's one of the kind you expect
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.