隐藏在asp.net的jquery中 [英] hide in jquery asp.net

查看:57
本文介绍了隐藏在asp.net的jquery中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi,

 I am new to jquery. I am starting practicing. My first program to hide the paragraph i wrote the script but its not working. I am using master pages also here is my code.

master.aspx i kept js files.

<head runat="server">
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>


<title></title>

in Default.aspx

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
$('#paragraph').click(function () {
$('#paragraph').hide();
})
</script>
<p id="paragraph">This is a Pragraph.</p>
</asp:Content>



here the paragraph id is not getting hide. please help me thank you.

推荐答案

('#paragraph').click(function(){
('#paragraph').click(function () {


('#paragraph').hide(); }) < /script > < p =" paragraph" < > < /asp:Content > 在这里,段落ID不会隐藏.请帮我谢谢.
('#paragraph').hide(); }) </script> <p id="paragraph">This is a Pragraph.</p> </asp:Content> here the paragraph id is not getting hide. please help me thank you.


检查网址,您会发现它很有趣.
http://www.roseindia.net/tutorial/jquery/jqHideParaOnClick.html [ ^ ]

欢呼
Check the url, you will find it interesting.
http://www.roseindia.net/tutorial/jquery/jqHideParaOnClick.html[^]

cheers


这篇关于隐藏在asp.net的jquery中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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