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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:51:22+00:00 2026-06-12T23:51:22+00:00

A client at work has requested that we convert a form into a drop-down

  • 0

A client at work has requested that we convert a form into a drop-down menu on their navigation. Not a problem in itself, but we are not allowed to use any JS here. If we can’t come up with any other fix though they will allow a small vanilla JS script to deal with the problem.

The Problem

The input on the form cannot be used in Internet Explorer as the entire menu hides on clicking on the form element.

I have made a JS Fiddle of the issue, and would appreciate any help anyone can provide here. The HTML/CSS is not my own. It was already in the project, unfortunately I can’t strip it down further than this otherwise other parts of the site break.

I have posted the HTML/CSS below as well for those who would rather just read it here than over on JS Fiddle.

The HTML:

<div class="head-basket">
   <div class="button">Shopping Basket</div>

   <div class="basket-container">
      <form method="post" action="#" enctype="multipart/form-data">
         <div><input type="hidden" name="basket" value="1" /></div>
         <table cellspacing="0" cellpadding="0" border="0">
            <tbody>
               <tr class="product-row">
                  <td class="item"><a href="/?r=238637" title="remove Dickies Redhawk Super Work Trousers with Free Knee Pads" class="rem">x</a><a href="/dickies-workwear/dickies-knee-pad-trousers/dickies-redhawk-super-work-trousers-with-free-knee-pads-p545.htm">Dickies Redhawk Super Work Trousers with Free Knee Pads</a></td>
                  <td class="quantity">
                     <select name="q238637" id="q238637" class="do-change">
                        <option value="1" selected="selected">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                        ...
                     </select>
                  </td>
               </tr>
               <tr class="product-desc">
                  <td class="item" colspan="2"><span>Waist Size: 30", Leg Length: 30", Colour: Black</span></td>
               </tr>
               <tr class="tax-row">
                  <td colspan="3"><span>Item total:</span>£14.99</td>
               </tr>
               <tr class="tax-row">
                  <td colspan="3"><span>UK tax at 20%:</span>£3.00</td>
               </tr>
               <tr class="total-row">
                  <th colspan="3"><span>Total:</span> £17.99</th>
               </tr>
               <tr class="spacer-row">
                  <td colspan="3"> </td>
               </tr>
               <tr class="delivery info-row">
                  <td colspan="3">
                     <p><span class="bold">Free Delivery</span> to England for orders over <span class="bold">£90.00</span> (excluding tax). </p>
                     <p>Spend another <span class="bold">£75.01</span> to qualify!</p>
                  </td>
               </tr>
            </tbody>
         </table>
         <div class="buttons">
            <noscript><div><input type="submit" class="button update" value="Update" /></div></noscript>
            <a href="/your-basket/" class="button tobasket action" rel="nofollow"><tt>Proceed to Secure</tt>Checkout</a>
         </div>
      </form>
   </div>
</div>​ 

And the CSS:

.head-basket {
    position: absolute;
    z-index: 1000;
    width: 190px;
    right: 0;
    top: 23px;
}

.head-basket .button {
    width: 90%;
    border: none;
    padding: 5%;
    text-align: center;
}

.head-basket .button:hover {
    border-bottom: none;
    box-shadow: none;
}

.head-basket:hover .button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: #fff;
    border-bottom: none;
}

.head-basket .basket-container {
    background: #fff;
    border: 2px solid #000002;
    display: none;
    padding: 3px;
}
.head-basket:hover .basket-container, .head-basket:active .basket-container, .head-basket .basket-container:active, .head-basket .basket-container:hover {
    background: #fff;
    display: block;
}


button, .button, .button:visited {
        display: inline-block;
        padding: 8px 15px;
        line-height: normal;
        position: relative;
        white-space: nowrap;
        font-size: 12px;
        font-weight: bold;
        color: #aaa;
        background: #000002;
        background: -moz-linear-gradient(#383834,#222222);
        background: -webkit-linear-gradient(#383834,#222222);
        -ms-filter: "progid:dximagetransform.microsoft.gradient(startcolorstr='#383834',endcolorstr='#222222')";
        filter: progid:dximagetransform.microsoft.gradient(startcolorstr='#383834',endcolorstr='#222222');
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        border-radius: 3px;
        border: 1px solid #111;
        border-bottom-color: #555;
        border-left-color: #555;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        text-decoration: none;
        text-align: left;
        border-width: 2px
}

button:hover, .button:hover {
        text-decoration: none; 
        -webkit-box-shadow: 0 1px 1px #c6c6c6; 
        -moz-box-shadow: 0 1px 1px #c6c6c6; 
        box-shadow: 0 1px 1px #c6c6c6; 
        color: #fff !important;
}

button:focus, .button:focus { 
        outline: 0; 
}

button:active, .button:active { 
        -webkit-box-shadow: inset 0 1px 2px #c6c6c6; 
        -moz-box-shadow: inset 0 1px 2px #c6c6c6; 
        box-shadow: inset 0 1px 2px #c6c6c6;
}​
  • 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-12T23:51:23+00:00Added an answer on June 12, 2026 at 11:51 pm

    There is a possibility of using :target selector for IE9. In you example you replace div.button with a.button:

       <a href="#basket-container" class="button">Shopping Basket</a>
    

    Add anchor to div.basket-container:

    <div class="basket-container" id="basket-container">
    ...
    </div>
    

    And then use :target selector to have dropdown opened:

    .head-basket .basket-container:target {
        background: #fff;
        display: block;
    }
    

    http://jsfiddle.net/HssXt/10/

    http://www.quirksmode.org/css/contents.html#t316

    Though, you will need some additional close button to remove the hash from this target. And in this case, still, IE8 and below won’t get any solution.

    So it’s inevitable. You either use JS to add some “active” class or replace select with text input.

    Another thing to consider is to remove that select input from the dropdown at all. Changing quantities in cart dropdown seems like a very infrequent use-case to me. And that functionality will be on checkout page anyways (will it?), so you can simplify the interface and get rid of a problem at the same time.

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

Sidebar

Related Questions

I work at a company that has many clients that have their own website
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in
I have a client who has brought in another developer to work on a
I need to work with private HTTPS API and client has incorrect certificate on
Inherited properties and MetadataType does not seem to work with client side validation in
I'm about to begin work on translating client's website into spanish and french and
I am using urllib2 to post data to a form. The problem is that
I have an .net 2.0 C# client app that has a web service reference
I have a Drupal site, site.com , and our client has a campaign that
I am trying to develop a system that has 2 tiers: a mobile client

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.