Menu
hi
I am trying to call a input from a javascript.
my input file
<input type=”file” name=”file” />
and javascript
<script type=”text/javascript”>
$(document).ready(function(){
// Used for UI widgets and styling samples
$(“#test1”).fileinput();
});
</script>
now the problem is if I add id=”test1″ in the input file the javascript stuff works but then actual thing that input file suppose to pass (File upload info) goes missing.
so I was wondering is there any way I could by pass adding the id part in the input and still call it?
I was thinking some thing like
$(document.forms[0].elements[“file”]).fileinput(); but that’s not working…