title: How to create a dynamic search bar in PHP without page refresh in PHP?
body: <pre><code>&lt;div data-role="page" id="page"&gt;
      &lt;div data-role="header"&gt;
  
      &lt;h4&gt; Page Refresh&lt;/h4&gt;
      &lt;/div&gt;
  
      &lt;div data-role="content"&gt;       
  
            &lt;div data-role="fieldcontain" data-theme="b"&gt;
              &lt;ul data-role="listview" data-inset="true"&gt;
  
              &lt;li data-role="list-divider"&gt; List of Contractors &lt;/li&gt;         
                  &lt;li&gt; 
                      &lt;label for="select-choice-1" class="select"&gt;Main Location&lt;/label&gt;
                         &lt;select name="main_location" id="select-choice-1"&gt;
                            &lt;option value="NSW"&gt;NSW&lt;/option&gt;
                            &lt;option value="ACT"&gt;ACT&lt;/option&gt;
                            &lt;option value="VIC"&gt;VIC&lt;/option&gt;
                            &lt;option value="SA"&gt;SA&lt;/option&gt;
                            &lt;option value="QLD"&gt;QLD&lt;/option&gt;
                            &lt;option value="NT"&gt;NT&lt;/option&gt;
                            &lt;option value="WA"&gt;WA&lt;/option&gt;
                            &lt;option value="TAS"&gt;TAS&lt;/option&gt;
                          &lt;/select&gt;                     
                &lt;/li&gt; &lt;!-- Select Menus: Main Location--&gt;  
  
                  &lt;li&gt;  &lt;h3&gt; Company 1 in NSW  &lt;/h3&gt;    &lt;/li&gt;                     
                  &lt;li&gt;  &lt;h3&gt; Company 2 in NSW  &lt;/h3&gt;    &lt;/li&gt;                     
                  &lt;li&gt;  &lt;h3&gt; Company 3 in NSW  &lt;/h3&gt;    &lt;/li&gt;                     
                  &lt;li&gt;  &lt;h3&gt; Company 4 in NSW  &lt;/h3&gt;    &lt;/li&gt;                                                         
  
            &lt;/div&gt;       
      &lt;/div&gt;
      &lt;div data-role="footer"&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have a drop down that has list of States, below it I've List of companies.</p>
  
  <p>I was wondering if I can dynamically populate list of companies with out page refresh based on the value selected in Drop down.</p>
  
  <p>In simple words, if the value selected NSW then the list of companies should only contain companies in NSW state. </p>
  
  <p>I would appreciate if some one can explain me with an example.</p>