javascript - Focus impromptu input text -


I'm using abruptly

to display the dialog box and User Assembled Input

But when I see it, I can not get the input text box to focus.

I have tried to give input to an id and added it to the Improm.

  $ ('#intomptu_fname') focus () .;   

I also tried to add autofocus to input.

None of these work. Any ideas?

You have to do this in loaded callback:

  $ Prompt ('Your message goes here.', {// Options are loaded: function () {$ ('# improduct_f_name'). Focus ();}});    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -