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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:23:46+00:00 2026-05-13T22:23:46+00:00

I have 2 basic forms: sign in and sign up, both on the same

  • 0

I have 2 basic forms: sign in and sign up, both on the same page. Now, I have no problem with the sign in form auto-filling, but the sign up form auto fills as well, and I don’t like it.

Also, the form styles get a yellow background which I can’t manage to override and I don’t want to use inline CSS to do so. What can I do to make them stop being colored yellow and (possibly) auto filling?

  • 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-13T22:23:46+00:00Added an answer on May 13, 2026 at 10:23 pm

    for the autocompletion, you can use:

    <form autocomplete="off">
    

    regarding the coloring-problem:

    from your screenshot i can see that webkit generates the following style:

    input:-webkit-autofill {
        background-color: #FAFFBD !important;
    }
    

    1) as #id-styles are even more important than .class styles, the following may work:

    #inputId:-webkit-autofill {
        background-color: white !important;
    }
    

    2) if that won’t work, you can try to set the style via javascript programmatically

    $("input[type='text']").bind('focus', function() {
       $(this).css('background-color', 'white');
    });
    

    3) if that won’t work, you’re doomed 🙂 consider this:
    this wont hide the yellow color, but will make the text readable again.

    input:-webkit-autofill {
            color: #2a2a2a !important; 
        }
    

    4) a css/javascript solution:

    css:

    input:focus {
        background-position: 0 0;
    }
    

    and the following javascript has to be run onload:

    function loadPage()
    {
        if (document.login)//if the form login exists, focus:
        {
            document.login.name.focus();//the username input
            document.login.pass.focus();//the password input
            document.login.login.focus();//the login button (submitbutton)
        }
    }
    

    eg:

    <body onload="loadPage();">
    

    good luck 🙂

    5) If none of the above work try removing the input elements, cloning them, then placing the cloned elements back on the page (works on Safari 6.0.3):

    <script>
    function loadPage(){
    
        var e = document.getElementById('id_email');
        var ep = e.parentNode;
        ep.removeChild(e);
        var e2 = e.cloneNode();
        ep.appendChild(e2);
    
        var p = document.getElementById('id_password');
        var pp = p.parentNode;
        pp.removeChild(p);
        var p2 = p.cloneNode();
        pp.appendChild(p2);
    }
    
    document.body.onload = loadPage;
    </script>
    

    6) From here:

    if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
        $(window).load(function(){
            $('input:-webkit-autofill').each(function(){
                var text = $(this).val();
                var name = $(this).attr('name');
                $(this).after(this.outerHTML).remove();
                $('input[name=' + name + ']').val(text);
            });
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 371k
  • Answers 371k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It will result in five bytes being output. And five… May 14, 2026 at 7:03 pm
  • Editorial Team
    Editorial Team added an answer Python includes a json module that can do the conversion… May 14, 2026 at 7:03 pm
  • Editorial Team
    Editorial Team added an answer General > Editors > Text Editors > Annotations You do… May 14, 2026 at 7:03 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.