rachelason
Programmer
Hi Everyone. i am trying to change the value of a textbox with
<form>
<a href="/sss/same.html" onclick="this.form.myt1.value=1">
<input type="text" name="myt1">
</form>
Is this possible to do? Because <a> tag when it reloads the same page ..onclick is not executed. WHen i try a submit button instead of <a> tag,, the value is reset. Any idea as to how else i can change the value? I want the <a> to do it?
cheers
Rach
<form>
<a href="/sss/same.html" onclick="this.form.myt1.value=1">
<input type="text" name="myt1">
</form>
Is this possible to do? Because <a> tag when it reloads the same page ..onclick is not executed. WHen i try a submit button instead of <a> tag,, the value is reset. Any idea as to how else i can change the value? I want the <a> to do it?
cheers
Rach