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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:17:32+00:00 2026-05-24T09:17:32+00:00

I am using a jQuery change event that is working fine apart from an

  • 0

I am using a jQuery change event that is working fine apart from an addition I just made. What I am trying to do, is when a user selects anything other than ‘NEW’ from the select, then show an input element. I assumed that this would work with just an else statement, but I was wrong. I would be grateful if someone could check my code and show me where I am going wrong? Thanks

<!--- dropdown for new user addition  -->
<script language="javascript" type="text/javascript">


        $(function() {

        $("#fld_company").show();
        $("#data").hide();


        $("#fld_company").live('click', function() {
              $("#fld_fld").toggle(1000);
              $("#formMessage").toggle(1000);
        });

            $("#AUSR_company").live('change', function() {
              if($(this).val()=="new")

             {
                $("#data").slideDown(1000);

             }

        else

           {

            $("#AUSR_name").show().slideDown(1000);

           }
        });
    });

</script>
<!--- end of dropdown for new user addition -->

        <dl>
          <dt>
            <label for="AUSR_name" class="opt">Full Name:</label>
          </dt>
         <dd>
            <input id="AUSR_name" name="AUSR_name" type="text" size="32" maxlength="128" value = "" />
         </dd>
        </dl>
  • 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-24T09:17:33+00:00Added an answer on May 24, 2026 at 9:17 am

    Based on your last comment, the below is what you need, but I have already seen that this is what you said wasn’t working in the question. PLease explain in what way it wasn’t working?

    $("#AUSR_company").live('change', function(e) {
      if($(this).val() =="new") {
        $("#data").show();
    
      } else {
        e.stopPropagation();
        $("#AUSR_name").show(3000)
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I change CSS from javascript . I'm using jQuery-ui Dialog and I
how to determine the child of a UL using jquery? im trying to change
I'm using some jQuery that works fine in all browsers except in Internet Explorer
I'm using Jquery's toggle event to do some stuff when a user clicks a
I'm using jQuery to change the HTML of a tag, and the new HTML
As you can see on http://jsbin.com/erivi/ I'm using Jquery to change some image (and
Using JQuery it possible to clone a Div like this and change add a
I need to change an element's ID using jQuery. Apparently these don't work: jQuery(this).prev(li).attr(id)=newid
How can I change a checkbox for a radio button using jQuery?
How can you change the href attribute (link target) for a hyperlink using jQuery?

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.