By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,569 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,569 IT Pros & Developers. It's quick & easy.

self detection

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.