self detection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wim Roffal

    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=='el ementA')"?

    Thanks,

    Wim


  • VK

    #2
    Re: self detection

    <FormElement onChange="myFun ction(this)">

    function myFunction(el) {
    if (el.name == "elementA") {...}
    }


    Comment

    Working...