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

  • Home
  • SEARCH
  • 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 6176177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:03:15+00:00 2026-05-24T00:03:15+00:00

I have a login dropdown much like Twitter. You can check it out here

  • 0

I have a login dropdown much like Twitter. You can check it out here http://mashup2.sunnydsouza.com/index3.php

Currently am using JQuery validation plugin to check whether the username/pass fields are entered before clicking submit. What I want is that if a user enters an incorrect username/password, the error login message should come within the dropdown itself, under the password field, without reloading the entire page again

But when user enters correct username/password, the page would refresh and the ‘Sign In’ would now replace with the username of the user entered (that will a dropdown too, with Control panel,logout options etc)

Can someone please help me out with this? How to do it in jQuery?

EDIT:

Following is the dropdown code

        <fieldset id="signin_menu">
              <form method="post" id="signin" action="index3.php">
                  <label for="username">Username or email</label>
                   <input id="username" name="username" value="" title="username" class = "required" tabindex="4" type="text">
              </p>
              <p>
                <label for="password">Password</label>

                <input id="password" name="password" value="" title="password" tabindex="5" class="required" type="password">
              </p>
              <p class="remember">
                <input id="signin_submit" value="Sign in" tabindex="6" type="submit" name="user_login">
                <input id="remember" name="remember_me" value="1" tabindex="7" type="checkbox">
                <label for="remember">Remember me</label>
              </p>
              <p class="forgot"> <a href="#" id="resend_password_link">Forgot your password?</a> </p>

              <p class="forgot-username"> <A id=forgot_username_link title="If you remember your password, try logging in with your email"  href="#">Forgot your username?</A> </p>
            </form>
          </fieldset> 

I want that when user enters an invalid username/password, an error message appears within this dropdown itself

  • 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-24T00:03:18+00:00Added an answer on May 24, 2026 at 12:03 am

    So you can add a “required” class to both input fields, then hook some code like this:

    var $form = $("#signin");
    $form.validate();
    $form.submit(function() {
    if (!$form.valid()) {
        return false;
    }});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a login screen that I force to be ssl, so like this:
Ok, so I have a dropdown login box, which uses this code for dropdown:
I have a Dropdown in my TopBar, built with the Twitter Bootstrap CSS framework.
I have a small block that contains something like this: Login | Register When
I have localized application where user can choose her preferred language in dropdown control.
I have 14 Dropdownlist accroding to 7 Days. Like For a day First dropdown
Normally we have login page with username, password filed and signin button. Using the
on my web site I want to have login/registration form in modal window done
Hi I want to create a WCF service that have login method, which is
Basically, I currently have login/ in urls.py redirect to the django.contrib.auth.views.login and that seems

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.