<table width="100%">
<tr>
<td style="width:50%;">
<asp:Button ID="SBSubmit_Rx" runat="server" BackColor="DarkGray" Text="Rx" Enabled="true" onclientclick="SB_Rx_AppendClick();" />
</td>
<td style="width:50%;">
<asp:TextBox ID="txtPR" runat="server" Width="100%"></asp:TextBox>
</td>
</tr>
</table>
<script type="text/javascript">
function SB_Rx_AppendClick() {
var TheTextBox = document.getElementById('<%= LoginView1.FindControl("txtPR").ClientID %>').value
TheTextBox.value = TheTextBox.value + " Rx";
}
</script>
I want to click the button and add text to the end of whats already in the textbox via javascript
Go to the complete details ...