I have a form with 1 textfield, on pressing tab the value in input is saved and the form refreshes.
the first time I open the form there's a focus on the input text (I have this jQuery('#input_x').focus(); when creating the form code)
but when the form refreshes the focus is not on the field.
what's strange to me is that when I run "jQuery('#input_x').focus();" in firebug console the focus doesn't return to that input either...
btw this works with chrome
arcticM
Recommended Answers
Jump to PostIs this code inside the $(function(){...}); or $(document).ready(function(){...}); or in script tags at the end of the html file?
All 2 Replies
stbuchok
arcticM
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.