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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:24:28+00:00 2026-05-27T11:24:28+00:00

I am using chosen.js for a dropdown, (http://harvesthq.github.com/chosen/) where I’d like to download a

  • 0

I am using chosen.js for a dropdown, (http://harvesthq.github.com/chosen/) where I’d like to download a file based on the item clicked. Below is what my code looks like at the moment. It’s the same as what they have in their example. I’ve been searching around & working this for a couple hours with no luck. Any thoughts?

  <form>
  <div id="container">
        <select data-placeholder="Choose a Location..."  class="chzn-select" style="width:550px;" tabindex="2">
          <option value=""></option> 
          <option value="http://example.com/folder/1100.pdf">1100</option>
          <option value="http://example.com/folder/0002.pdf">0002</option>
          <option value="http://example.com/folder/0011.pdf">0011</option>
          <option value="http://example.com/folder/0018.pdf">0018</option>
          <option value="http://example.com/folder/0021.pdf">0021</option>              
        </select>
      </div>
    </div>
  </div>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="chosen/chosen.jquery.js" type="text/javascript"></script>
  <script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true});</script>
  <script>

  </script>  
  </form>
  • 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-27T11:24:29+00:00Added an answer on May 27, 2026 at 11:24 am

    Not sure if this is what you’re talking about, but here’s what I’d try:

    $('select.chzn-select').change(function() {
      if ($(this).find(':selected').length) {
        window.location = $(this).find(':selected').val();
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery chosen plugin ( http://harvesthq.github.com/chosen/ ) on one of my forms
I'm in the process of using jQuery Chosen for 2 <select> elements. Each element
I'm using a file open dialog to chose image files for further editing. The
Using jQuery, what is the most simple and elegant way to re-select an item
I'm wondering if the following may be possible using something like jQuery. I've looked
I am using the Harvest Chosen jQuery plugin successfully to create a drop down
I deleted the chosen default theme in WebSphere Portal 6.1 using the administration pages.
Who knows how the port is chosen when I'm using accept method of ServerSocket
I am using startActivityForResult() to allow the user to choose a file form the
I'm using the following code to search an ajax file for a query with

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.