title: Jquery Chosen Plugin Styling Lost After Ajax Call
body: <p>Here is the page (and demos) of the Jquery Chosen Plugin. It's quite handy.</p>
  
  <p><a href="http://harvesthq.github.io/chosen/" rel="nofollow">http://harvesthq.github.io/chosen/</a></p>
  
  <hr>
  
  <p>So my issue is that I'm using a 2 stage input form to collect location information.
  The first select menu is for countries. Once a country is selected, the 2nd input field only shows options for the country in field 1. Neato!</p>
  
  <p>here is a live demo of my issue.</p>
  
  <p><a href="http://globatum.com/admin/" rel="nofollow">http://globatum.com/admin/</a></p>
  
  <p>You'll notice that the ajax call works but once the 2nd field is returned, the styling is lost! =(</p>
  
  <p>According to the plugin</p>
  
  <p>The select menu must be within a certain html frame</p>
  
  <pre><code>    &lt;select data-placeholder="Select City" class="chzn-select" style="width:350px;" tabindex="2" name="city"&gt;
  &lt;? while($row=mysql_fetch_array($result)) { ?&gt;
  &lt;option class="active-result option"
  style="padding: 5px 0px 5px 0px; font-family:arial; font-size:12px;"
  
  &gt;&lt;?=$row['city']?&gt;&lt;/option&gt;
  &lt;? } ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>This technically should work but doesn't.
  Any clue as to how to keep the styling after the call?</p>
  
  <p>here is the php page being returned</p>
  
  <pre><code>&lt;!--//---------------------------------+
  //  Developed by Roshan Bhattarai    |
  //  http://roshanbh.com.np           |
  //  Contact for custom scripts       |
  //  or implementation help.          |
  //  email-nepaliboy007@yahoo.com     |
  //---------------------------------+--&gt;
  &lt;?
  #### Roshan's Ajax dropdown code with php
  #### Copyright reserved to Roshan Bhattarai - nepaliboy007@yahoo.com
  #### if you have any problem contact me at http://roshanbh.com.np
  #### fell free to visit my blog http://php-ajax-guru.blogspot.com
  ?&gt;
  
  &lt;? $country = $_GET['country'];
  $link  = mysql_connect("SNIP");
  if (!$link) {
      die('Could not connect: ' . mysql_error());
  }
  mysql_select_db('SNIP');
  $query="SELECT city FROM location WHERE country='$country' ORDER BY `city` ASC";
  $result=mysql_query($query);
  
  ?&gt;
  &lt;div class="x"&gt;
  &lt;br&gt;
  &lt;select data-placeholder="Select City" class="chzn-select" style="width:350px;" tabindex="2" name="city"&gt;
  &lt;? while($row=mysql_fetch_array($result)) { ?&gt;
  &lt;option class="active-result option"&gt;&lt;?=$row['city']?&gt;&lt;/option&gt;
  &lt;? } ?&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>