Click event also fires focus event causing a function to run twice - jQuery
Click event also fires focus event causing a function to run twice - jQuery
HTML
<input type="text" value="a" OnFocus="TestFunction(this);"/>
<br />
<input type="text" value="b" OnFocus="TestFunction(this);"/>
<br />
<input type="text" value="c" OnFocus="TestFunction(this);"/>
<br />
<input type="text" value="d" OnFocus="TestFunction(this);"/>
JavaScript
function TestFunction(ctrl){
alert(ctrl.id);
}