im trying to change an input type hidden to input type file. The code is working fine on mozilla firefox and internet explorer, but it is not working on Google chrome. Following is my code. Plz help..!!
<script type="text/javascript">
function hide()
{
$(document).ready(function()
{
$('#att').hide();
$('#change').hide();
$('#change1').hide();
document.getElementById('fileatt').type='file';
})
}
</script>
<input name="fileatt" id="fileatt" type="hidden" size="12" style="float:left;">
<input type="button" id="change" value="Change" onclick="hide()">