jQuery/Javascript不起作用 [英] JQuery/Javascript is not working

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

问题描述

大家好,
我有一个页面,其中两个文本框接受用户输入.页面上还有一个取消按钮,用于清除用户输入.我想在客户端空白输入.我将Jquery代码实现要求,但它不起作用.它既不会给我带来任何错误,也无法正常工作.
我从项目中的执行位置(通过将其拖动到页面)引用了Jquery.js文件.
我正在使用64位Windows Vista和Visual Studio 2008专业版.
请为我建议合适的工作地点.

Hi All,
I have a page where two text box accept users inptut. A cancel button is also at page to clear the user''s input.I want to blank the inputs at client side. I put Jquery code to achive the requirment but it does not work. It is neither giving me any error nor functioning well.
I referenced the Jquery.js file from exect loacation (by dragging it to page) which is in my project.
I am using 64 bit Windows Vista and Visual studio 2008 Profesional version.
Please suggest me the right place to work on.

推荐答案

您好,PratSol,
在JQuery中,您可能正在使用文本框的
Hi PratSol,
In JQuery u may be using


(``#id'').
你应该这样,
(''#id'') of the textbox.
You should do like this,


("<%= textBox.ClientID %>")
("<%= textBox.ClientID %>")


如果它不起作用,则在页面加载时尝试使用alert(''Any Msg'')并检查警报是否到来?
有关进一步的讨论,请对此消息进行回复.

问候,
Jitendra


If it didnt work then on Page load, try to use alert(''Any Msg'') and check whether alert is coming or not?
For further discussion, reply on this msg.

Regards,
Jitendra


这篇关于jQuery/Javascript不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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