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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:56:54+00:00 2026-06-15T12:56:54+00:00

I have a form which populates div elements based on selections from a select

  • 0

I have a form which populates div elements based on selections from a select box using an AJAX call.

The content of the populated div is a multiselect box that I want Chosen to apply to. Unfortunately it seems that the ‘chzn-select’ is not firing, no doubt due to this being pulled in dynamically.

I have added this:

    <script type="text/javascript">
    $(".chzn-select").chosen();
    </script>

To the bottom of the code that is pulled in by AJAX, but it is still not firing. Any ideas on how to make this work as desired?

  • 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-15T12:56:54+00:00Added an answer on June 15, 2026 at 12:56 pm

    Solved myself. Will post for future reference. I put the Chosen calls in their own function on my original page that calls the AJAX:

        <script type="text/javascript">
        function doChosen() {
            $(".chzn-select").chosen();
            $(".chzn-select-deselect").chosen({allow_single_deselect:true});
        }
        </script>
    

    And in the AJAX script itself, I added a call to the function after the responseText part:

        document.getElementById(div).innerHTML=oXmlHttp.responseText
        doChosen();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form which populates 3 fields based on the selection from an
I have a signup form which has a select box and, dependig on which
I have an inout form which populates todays date automatically through the 'today' function.
I have this form, in which i need to populate a combo box with
I have a form which POST's its data via AJAX: $.ajax({ type: POST, url:
My site has a form which insert records in a database using ajax, at
I have a form on my page which contains two select dropdowns. The first
I am designing a database app, and have a form which populates with data
I have the following div block which i'm trying to validate using the jQuery
I have a form which I want to be 'resusable' for a variety of

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.