Update Textbox Value When A Button Is Clicked
Here is my problem, when i click the submit button, the textbox doesn't show any value Is there any mistakes, i am just a newbie Thank you very much
Solution 2:
I was typing the same answer what Adeneo just given, thank you Adeneo.
And user3635102, your <form>
was good, you can keep it as it was. Only you need to change <input type="submit">
to <input type="button">
. if you need to submit the form in future you can update your Javascript as follows which will submit form1:
<script>
function setValue() {
document.getElementById('bbb').value = "new value here";
document.getElementById("form1").submit();
}
</script>
Post a Comment for "Update Textbox Value When A Button Is Clicked"