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 Tue 8 Sep - 13:33

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 Tue 8 Sep - 17:11; edited 1 time in total
avatar
Ace 1
Helper
Helper

Male Posts : 833
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 Tue 8 Sep - 13:38

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 : 41436
Reputation : 2840
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 Tue 8 Sep - 15:41

avatar
Ace 1
Helper
Helper

Male Posts : 833
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 Tue 8 Sep - 16:07

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 Tue 8 Sep - 16:18

For example.

Click this link.

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

Male Posts : 833
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 Tue 8 Sep - 17:03

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 : 13181
Reputation : 2889
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 Tue 8 Sep - 17:11

Thanks. -Solved
avatar
Ace 1
Helper
Helper

Male Posts : 833
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 Tue 8 Sep - 17:12

No problem Wink

Topic archived

Have a good day.
avatar
Ange Tuteur
Forumaster

Male Posts : 13181
Reputation : 2889
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