I am sorry, I am new to javascript.
I want to pass an id selector as a parameter on click event as follows :
i tried :
<button onclick="mycustomfunction(document.getElementById('someTextId'))"/>
and using jquery :
<button onclick="mycustomfunction($('#someTextId').val())"/>
mycustomfunction(control)
{
// do something with the control
}
can someone please help me to understand where I am going wrong ?