469,579 Members | 1,112 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

self detection

I have on different form elements an onChange routine.

Now I was wondering how I can see which element fired the routine. Can I
write something like "if (self.name=='elementA')"?

Thanks,

Wim
Jul 20 '05 #1
1 1011
VK
<FormElement onChange="myFunction(this)">

function myFunction(el) {
if (el.name == "elementA") {...}
}
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.