onfocus function in javascript without using id -


i have table , few rows, when user enters value in cell, checks correct format , pop's message if value incorrect , want focus stay in current cell. dont have id in input type, directly passing value.

can tell me, without using document.getelementbyid().focus(), other way focus on current cell.

tia

if event handler bound input should able capture this. otherwise should able read target property of the event object.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -