Posted on: 1/15/2014 1:09:02 AM | Views : 678

<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 + "&nbsp;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 ...