hi,
need a tip.
i wanted to put in a value for my input from an onclick event.
example:
<script type="text/javascript">
function change_value(frm){
frm.elements['file_up'].value="test.jpg"
}
</script>
<form action="trial.php" method="post" enctype="multipart/form-data" name="trial_input">
<input type="file" size="20" name="file_up">
<input type="button" value="val" onclick="change_value(trial_input)">
</form>
the script wont work and my firebug returns a
Security error" code: "1000
please enlighten me
JEBO
4saledavao
need a tip.
i wanted to put in a value for my input from an onclick event.
example:
<script type="text/javascript">
function change_value(frm){
frm.elements['file_up'].value="test.jpg"
}
</script>
<form action="trial.php" method="post" enctype="multipart/form-data" name="trial_input">
<input type="file" size="20" name="file_up">
<input type="button" value="val" onclick="change_value(trial_input)">
</form>
the script wont work and my firebug returns a
Security error" code: "1000
please enlighten me
JEBO
4saledavao