Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:56:37+00:00 2026-06-07T01:56:37+00:00

I have a login page on which I am trying to toggle the display

  • 0

I have a login page on which I am trying to toggle the display of a button to allow the user to modify their roles (pick from a list of their user’s available roles).

I am hiding the button initially and showing it on $("#txtUsername").blur().

My question: is there a way to pick up a Chrome Autofilled value?

If I try to trigger it on document ready, the value is blank, and the button doesn’t show.

$(function () {
    $("#btnRoles").hide();
    $("#txtUsername").blur(function () {
        if ($(this).val()) $("#btnRoles").show();
        else $("#btnRoles").hide();
    }).trigger("blur");
});

But the textbox is then filled in via Autofill. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:56:39+00:00Added an answer on June 7, 2026 at 1:56 am

    I couldn’t find anything to read the values specifically after the page had loaded. I ended up forcing the focus on the textbox by using $("#txtUsername").trigger("focus"), so when the user did anything it would call .blur() and fill in the roles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a login page which uses ajax to validate a user and
I have a child page LoginContent.aspx which contains a login form. If the user
I have a login page (an activity in Android), during which I run an
I have an ASP.Net website which has a remember me feature for Login page.
I have simple login box, which is centered to the middle of page (vertical
I have a login form, which needs to be re-directed to the main page
Normally we have login page with username, password filed and signin button. Using the
I have a Login page that captures User input like this. MD5calc ss =
I have a page which displays a form that a logged-in user can use
I have a standard HTML login page, which I would much rather use than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.