I\'ve got an element
On this, there is an Event
onChange=\"myfunction(param)\".
To get the .value inline, it would look like this:
<input type="text" onchange="myfunction(this.value)" />
Inside an inline event handler, this will refer to the DOM element.
Therefore, you can write onchange="myfunction(this)" to pass the DOM element itself to the function.
You can pass this to myFunction which will be the input
<input type="text" onChange="myfunction(this)" />
then myFunction could look like this:
function myFunction(obj)
{
var value = obj.value; // the value of the textbox
}