本文介绍了隐藏在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.
推荐答案
这篇关于隐藏在asp.net的jquery中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!