I am trying to call function when onfocus event occur in input field but its gives error that
function is not defined at htmlinputelement.onfocus
HTML:
<input type="text" class="form-control" onFocus="forFocus(this);" id="name"
aria-describedby="emailHelp" placeholder="Enter Name">
Javscript function:
function forFocus(element){
console.log('here on focus is called now', element);
}
Please help link http://jsfiddle.net/7gxnr7cb/18/