The current element as its Event function param

后端 未结 3 1513
無奈伤痛
無奈伤痛 2020-11-30 10:10

I\'ve got an element


On this, there is an Event

onChange=\"myfunction(param)\".
3条回答
  •  情话喂你
    2020-11-30 11:15

    You can pass this to myFunction which will be the input

    
    

    then myFunction could look like this:

    function myFunction(obj)
    {
        var value = obj.value; // the value of the textbox
    }
    

提交回复
热议问题