title: file upload link in drop down - HTML
body: <p>I need an HTML code for a drop down button, which have a link file-upload , which will open the file upload box.
  I have the HTML code as below, but it's not working. Whats the problem ?</p>
  
  <pre><code>&lt;html&gt;
  &lt;script type='text/javascript'src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2"&gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" href="ssssssss.css"&gt;
  
  &lt;body&gt;
  &lt;select id="uploadFile"&gt;
  &lt;option value="1"&gt;&lt;/option&gt;
  &lt;option value="2"&gt;&lt;input type="file" name="something" id="fileUploadField" /&gt;File&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;script type="text/javascript"&gt;
  
  $('#fileUploadField').click(function(e){
  $('#fileUploadField').click();
  e.preventDefault();
  });
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>