file upload link in drop down - HTML -
i need html code drop down button, have link file-upload , open file upload box. have html code below, it's not working. whats problem ?
<html> <script type='text/javascript'src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2"></script> <link rel="stylesheet" href="ssssssss.css"> <body> <select id="uploadfile"> <option value="1"></option> <option value="2"><input type="file" name="something" id="fileuploadfield" />file</option> </select> <script type="text/javascript"> $('#fileuploadfield').click(function(e){ $('#fileuploadfield').click(); e.preventdefault(); }); </script> </body> </html>
you cant add html code in option item (cf: http://www.w3schools.com/tags/tag_option.asp).
what have create drop down menu css (cf: http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu), can add input type file tag.
Comments
Post a Comment