jquery - How not to Allow Cursor go into Input Automatically? -
i have form input's. when it's opened (via jquery ui: dialog)... cursor (that think blinks after text type) automatically jumps first input! ruins placeholder's text , i'm looking way disallow cursor automatically focus on input or set input default 1 focusing-in.
the offending code in open() function of ui dialog:
$(self.element.find(':tabbable').get().concat( uidialog.find('.ui-dialog-buttonpane :tabbable').get().concat( uidialog.get()))).eq(0).focus(); it automatically gives focus first tabbable element in dialog. can make input untabbable setting property tabindex="-1" on <input>.
hope helps
Comments
Post a Comment