Jquery函数不起作用 [英] Jquery function does not work
本文介绍了Jquery函数不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="/css/total.css" rel="stylesheet" type="text/css" />
<script src="../jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
}
$("#txtsvalue").focus(function () {
alert("working well");
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
我在文本中写了以下jquery框txtsvalue聚焦然后它显示警报。但它不起作用。
先谢谢你的帮助。
I wrote the following jquery to when Textbox "txtsvalue" focused then it shows the alert. But it does not work.
Thanks in advance to help.
推荐答案
( #txtsvalue)。focus( function (){
alert( 运作良好);
});
< / script >
< / asp:内容 >
< asp:内容 ID = Content2 ContentPlaceHolderID = ContentPlaceHolder1 Runat = 服务器 >
("#txtsvalue").focus(function () { alert("working well"); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
我在文本中写了以下jquery框txtsvalue聚焦然后它显示警报。但它不起作用。
提前感谢您的帮助。
I wrote the following jquery to when Textbox "txtsvalue" focused then it shows the alert. But it does not work.
Thanks in advance to help.
小提琴 [ ^ ]
请检查以上小提琴。在焦点上弹出警报。希望这会有所帮助。
谢谢
快乐编码
:)
fiddle for this[^]
Please check the above fiddle. On focus the alert pops up. Hope this helps.
Thanks
Happy Coding
:)
更改下面的javascript一个。
Change the javascript like the below one.
<script src="../jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
这篇关于Jquery函数不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文