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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:39:35+00:00 2026-06-07T05:39:35+00:00

Hai i have a button and dropdown.When i change the dropdown i hide the

  • 0

Hai i have a button and dropdown.When i change the dropdown i hide the button its working fine.Event after i want to show the button.how to do this.

once i hide i cannot view the button.i need to hide only the dropdown change function other time i want to show the button.

code

<html>
<head>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script src="http://code.jquery.com/jquery-1.7.2.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function() {
    $("select").change(function(){
$("#myHeader").hide();
    });
});
</script>
<body>

<select id="header">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
</select>
<input type="button"  id="myHeader" style="width:20%;background-color:blue" />
</body>
</html>
  • 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-07T05:39:38+00:00Added an answer on June 7, 2026 at 5:39 am

    try this:

    $("select").focus(function(){
         $("#myHeader").hide();
    });
    
     $("select").blur(function(){
         $("#myHeader").show();
    });
    
    $("select").change(function(){
         $(this).trigger('blur');
    });
    

    DEMO

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

Sidebar

Related Questions

Hai i want to generated an automated click event. I am working in php
Hai am trying to get the gps location using BroadCast Receiver.its working fine,But i
Hai I have An XDocument .All nodes in this document have an attribute UserId.
hai I have a magento web site. In this the search function compare with
hai I have a Spanish site in php. In this a mail body contain
Hai I have worked with clean URL in php. Now I want to convert
hai.all..can you tell me how to make table in jquery? i want using this
Hai presently i have grid like this. <Grid Name=tGrid1 Grid.Row=0 Background=Black > </Grid> <Grid
I have the following data: [{class:test,description:o hai,example:a,banana:b}] As this JSON data is already in
Hai Guys, I have to print a page in php but i dont want

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.