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 6934781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:00:23+00:00 2026-05-27T12:00:23+00:00

Guyz, I’ve a weird situation: I need to pre-compile input field when visitor opens

  • 0

Guyz, I’ve a weird situation: I need to pre-compile input field when visitor opens a pop-up window by clicking on the button.

See here: http://www.ageditalia.it/ in the header click on a little banner that says email and password. Pop-up will jump out. I need these password and email written on the banner to be inserted with jquery automatically.

I tried this:

$("a:.loginonthefly-open").click(function (event) {
    $("#auth_username").blur(function()
    {
        if ($(this).val() == "")
        {
             $(this).val("haha");
        }
    });
    $("#auth_username").blur();
});

but field input gets cleared, I see my haha text for few seconds and than it disappears.

I don’t understand what is going on,

Any help appreciated!

EDIT:
So far I got this, it works only on the second click when html is inserted in dom. Doesnt work on first click on fresh page load!

$("a:.loginonthefly-open").click(function (event) {
if($("#auth_username").val() == "") {
$("#auth_username").delay(200).queue(function(){
$("#auth_username").val("TEST");
});
}
});

How do I make it work on first load?

Obviously I need a better handler than click. any thoughts?

  • 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-05-27T12:00:24+00:00Added an answer on May 27, 2026 at 12:00 pm

    Why are you hooking the code to the blur event? Try just doing it in the click function:

    $("a:.loginonthefly-open").click(function (event) {
        if($("#auth_username").val() == "") {
            $("#auth_username").val("haha");
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hai guyz I need to create a login window for that window i need
Hye guyz.. If i want to make a help button for my figure. How
ok guyz, got one more question for you. i need to select only the
hai guyz, how can i send AT-command through bluetooth from a python application? OS:fedora
hi guyz i know android says if u are working with gui adjust your
Would you guyz be so kind to help me with such question: I have
Possible Duplicates: Running IE6, IE7, and IE8 on the same machine Need a good
i m a newbie... I need help with inser statement .. my code is
Hi guyz im able to pinch zoom the image in webview its working properly.
i am looking for code to validate html color codes. wanna check if user

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.