Click here to Skip to main content
15,921,279 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to print an error message to my webform when clicking on a textbox
Posted
Comments
Thanks7872 30-Apr-14 3:25am    
Ok. Print it. Come back when you face any issues doing the same.

function Clicked() {
alert('You Clicked the Button');

}




<asp:textbox id="TextBox1" runat="server" onclick="Clicked();" xmlns:asp="#unknown">
 
Share this answer
 
JavaScript
$("#textbox").on("click", function() {
$("#webform").html("Error Message");
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900