Click here to Skip to main content
16,005,290 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a jquery Function and i want to call that function on Buttons click event in asp.net. Currently i m calling that function on the Ready method :

JavaScript
$(document).ready(function () {
	$('#fancyClock').DisplayClock();
});

Here fancyclock is a div .

Now as due to requirement changes i want to display the div on few button click event not on page load.

Please help me to solve this issue.
Posted

1 solution

ASP.NET
<head>
<script language="javascript" type="text/javascript">
    function validat() 
{
.
.
.
.
.
.
}
</script>
</head>
<body>
 <asp:imagebutton id="ButtonMobileSubmit" imageurl="../images/submit.gif" runat="server" onclientclick="return validat();" xmlns:asp="#unknown" />  </body>
 
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