G
Guest
Hi,
I have been trying for an hour now with this. I need to pass the value from
one textbox1 to textbox2, when a button is clicked, using javascript.
textbox2 is within a panel.
This is the script
<script type="text/javascript">
function onOk()
{
var x = document.all.Textbox2.Value;
//var x = document.getElementById("Textbox2").Value;
//document.getElementById('<%= Textbox2.Text %>').innerText;
document.getElementById("Textbox1").value=x;
}
</script>
Please advice.
Thanks
I have been trying for an hour now with this. I need to pass the value from
one textbox1 to textbox2, when a button is clicked, using javascript.
textbox2 is within a panel.
This is the script
<script type="text/javascript">
function onOk()
{
var x = document.all.Textbox2.Value;
//var x = document.getElementById("Textbox2").Value;
//document.getElementById('<%= Textbox2.Text %>').innerText;
document.getElementById("Textbox1").value=x;
}
</script>
Please advice.
Thanks