PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Enhanced dropdowns on country dropdown fields?

  1. Hello,

    I'm trying to make my dropdown/select fields be consistent with the enhanced option using chzn.

    I tried using jquery to add the chzn-select class to the existing select fields with no luck.

    Has anyone done this, or can someone point me in the right direction? I'd like all of my select fields to use the chzn interface.

    Thank you,
    Tony

    Posted 11 years ago on Friday January 11, 2013 | Permalink
  2. Can you please post a link to the page on your site where the form is embedded. Please configure it with the CSS class added so we can see how you are trying to do things. Thank you.

    I assume you mean the country selection in an address block, not just a select field with the countries as choices?

    Posted 11 years ago on Saturday January 12, 2013 | Permalink
  3. Hello,

    Thanks for your reply, and sorry for the delay...the site wasn't live but I figured it out by adding this before the chosen script:

    $("select").addClass(function(){
    return "chzn-select";
    });

    It works for both regular select fields and the one inside the country block.

    Posted 11 years ago on Saturday February 16, 2013 | Permalink
  4. Thank you for the update. Glad to see you have this working. Can you share the URL so someone can see this in action?

    Posted 11 years ago on Monday February 18, 2013 | Permalink

This topic has been resolved and has been closed to new replies.