How to focus cursor using jquery for text box, while moving to next field , if it is empty,
AntonyRayan
15
Posting Whiz in Training
Recommended Answers
Jump to Post"Focus on a textbox while moving to the next textbox if it's empty"
You mean as in focus on the first non-empty textbox?
while moving to next field
Moving as in moving focus?
You'll have to be more clear.
You can use
.focus()
to set focus, or.focusin()
…
Jump to PostI don't know what you have and I don't know what you want, so I can't help you with anything other than general usage.
$("#myTextbox").focus();
will set focus to an element with the id myTextbox. Be sure to call it after the elements have been created, for instance by …
All 6 Replies
Traevel
216
Light Poster
AntonyRayan
15
Posting Whiz in Training
Traevel
216
Light Poster
diafol
AntonyRayan
15
Posting Whiz in Training
Traevel
216
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.