The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to bring focus to Login textbox

View previous topic View next topic Go down

Solved How to bring focus to Login textbox

Post by Ace 1 on September 8th 2015, 7:33 pm

When a user connects to my forum, how can I make focus go to the login text field?

thanks.


Last edited by Ace 1 on September 8th 2015, 11:11 pm; edited 1 time in total
avatar
Ace 1
Helper
Helper

Male Posts : 831
Reputation : 62
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by SLGray on September 8th 2015, 7:38 pm

Could you please explain further what you want?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 41149
Reputation : 2811
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 on September 8th 2015, 9:41 pm

avatar
Ace 1
Helper
Helper

Male Posts : 831
Reputation : 62
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Klemen on September 8th 2015, 10:07 pm

What do you mean by 'focus go to /.../'?
avatar
Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 on September 8th 2015, 10:18 pm

For example.

Click this link.

You see how it automatically focuses to the login field?
avatar
Ace 1
Helper
Helper

Male Posts : 831
Reputation : 62
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ange Tuteur on September 8th 2015, 11:03 pm

Hi @Ace1,

Add the following into a script.
Modules > JS codes management > Create a new script

Placement : In all the pages
Code:
$(function() {
  var pseudo = $('input[name="username"]')[0];
  pseudo && pseudo.focus();
});
avatar
Ange Tuteur
Forumaster

Male Posts : 13177
Reputation : 2882
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 on September 8th 2015, 11:11 pm

Thanks. -Solved
avatar
Ace 1
Helper
Helper

Male Posts : 831
Reputation : 62
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ange Tuteur on September 8th 2015, 11:12 pm

No problem Wink

Topic archived

Have a good day.
avatar
Ange Tuteur
Forumaster

Male Posts : 13177
Reputation : 2882
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum