如何在点击时呼叫特定对象. [英] How to call a particular on click..

查看:68
本文介绍了如何在点击时呼叫特定对象.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

好吧,我正在做一个正常的网站项目,它完全依赖于jQuery HTML.因此,现在我遇到了一些问题,问题是当我单击图像时,它应该调用特定的"Div id",但现在无法正常工作.
在此先感谢:)

Hi Friends,

Well, I am working on a project Which is a normal Website and its completly depend on jquery html. So now i got stuck with some issue, and the issue is When i Click on a image it should a call particular "Div id", but now its not working fine.
Thanks in Advance :)

推荐答案

您的问题尚不清楚,但在jquery中使用了以下代码来调用某些函数.
试试吧

Your problem is not clear but following code is used in jquery to call some function.
Try it


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


(``#YourdivId'').click (函数(){
功能主体
});
});

希望它能起作用
(''#YourdivId'').click (function () {
function body
});
});

hope it works


这篇关于如何在点击时呼叫特定对象.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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