Set input focus jQuery script only works when logged in. Why?!
-
I use this bit of jQuery to set focus to the first input fields in forms:
jQuery(document).ready(function() {
// focus on the first text input field in the first field on the page
jQuery("input[type='text']:not(.nofocus):visible:enabled:first", document.forms[0]).focus();
});It works great, but only when I’m logged-in. Why?!
Has anyone seen something similar? Is there javascript that’s only loaded when you’re not logged-in that could cause a conflict? How can I troubleshoot this?
How does logging-in affect jQuery/javascript?
Is there a way to make the jQuery more conflict-proof?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Set input focus jQuery script only works when logged in. Why?!’ is closed to new replies.