I have a with problem div and jquery . I need to give focus on a div in my form using jquery. Actually I am using auto complete , my own jquery script . It’s just display the data on div when a user typed in textbox . But I can’t focus to div ,don’t ask me why you have to focus on DIV. But I need this. Anybody have idea?
Share
If you want to focus a
div(or any element that’s not focusable by default), you’ll need to give ittabindex=0first: