Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1394 Points
303 Posts
Jan 03, 2008 04:01 AM|LINK
function clrCtrl() { document.getElementById('ctl00_ContentPlaceHolder1_TextBox1').value = ""; document.getElementById('ctl00_ContentPlaceHolder1_TextBox2').value = ""; } <asp:Button ID="ClearButton" runat="server" Style="position: static" Text="Button" OnClientClick="clrCtrl()" />
windows_mss
Participant
1394 Points
303 Posts
Re: how to clear textboxes using javascript?
Jan 03, 2008 04:01 AM|LINK
function clrCtrl() { document.getElementById('ctl00_ContentPlaceHolder1_TextBox1').value = ""; document.getElementById('ctl00_ContentPlaceHolder1_TextBox2').value = ""; } <asp:Button ID="ClearButton" runat="server" Style="position: static" Text="Button" OnClientClick="clrCtrl()" />NJoy Programming...
Blogging @ xploredotnet