jQuery方法对Button事件的调用. [英] Jquery method call on Button events.

查看:117
本文介绍了jQuery方法对Button事件的调用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jquery函数,我想在asp.net中的Buttons click事件上调用该函数.目前,我正在使用Ready方法调用该函数:

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 :

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


在这里,fancyclock是一个div.

现在由于需求变更,我想在一些按钮单击事件上显示div,而不是在页面加载上显示.

请帮助我解决此问题.


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.

推荐答案

(文档).ready(函数(){
(document).ready(function () {


( #fancyClock').DisplayClock(); });
('#fancyClock').DisplayClock(); });


在这里,fancyclock是一个div.

现在由于需求变更,我想在一些按钮单击事件上显示div,而不是在页面加载上显示.

请帮助我解决此问题.


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.


<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>


这篇关于jQuery方法对Button事件的调用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆