title: Need help with jQuery to clone form dropdown (dynamic dropdown)
body: <p>I am using PHP to generate dynamic dropdown, the dropdown list items are fetched from database.</p>
  
  <p>Here's the php code for that and it works.</p>
  
  <pre><code>&lt;select name="title[]" id="title"&gt;
  &lt;?php $categories = Category::find_by_cid(5); foreach($categories as $category): ?&gt;
  &lt;option value="&lt;?php echo $category-&gt;name; ?&gt;"&gt;&lt;?php echo $category-&gt;name; ?&gt;&lt;/option&gt;
  &lt;?php endforeach; ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>What i want to do is, Using jQuery whenever a link with id AddNew is clicked, a new dropdown should appear below that, containing same values.</p>
  
  <p>Also, is there any way to execute php code inside javascript??</p>
  
  <p>ex :</p>
  
  <pre><code>&lt;script&gt;
  var name = "&lt;?php echo $user-&gt;name; ?&gt;";
  &lt;/script
  </code></pre>