I have form with input‘s. When it’s opened (via jQuery UI: Dialog)… cursor (that think that blinks after your text as you type) automatically jumps into first input! It ruins my placeholder‘s text and I’m looking for way to disallow cursor automatically focus on input or set another input as default one for focusing-in.
I have form with input ‘s. When it’s opened (via jQuery UI: Dialog)… cursor
Share
The offending code is in the
open()function of the UI dialog:It automatically gives focus to the first tabbable element in the dialog. You can make your input untabbable by setting the property
tabindex="-1"on the<input>.Hope that helps