salve sto cercando di abilitare, tramite un normale link, un campo input "file"
codice:
<style>
form.modAvatar { display:none; }
</style>
<script>
function changeAvatar(){
document.getElementById("avatar").disabled="false";
}
</script>
...
<form class="modAvatar" name="modAvatar" method="post" action="page/modAvatar.php" enctype="multipart/form-data" target="avatarMod">
<input id="avatar" name="avatar" type="file" onchange="avatarsubmit();" />
</form>
ma non funge cioè non mi apre la finestra per inserire il file.