<%@ Page Language="C#" MasterPageFile="~/ParentMaster.master" AutoEventWireup="true" CodeFile="HideMe.aspx.cs" Inherits="JQuery_HideMe" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="contentMain" Runat="Server"><%--<script type="text/javascript" src="../Script/jquery-1.6.2.js"></script>--%><
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.2.min.js"></script>script type="text/javascript">$(document).ready(
$(
$(
$(function() {"p").click(function() { $(this).hide(); });"#test").click(function() { $(this).hide(); });"#tbCell1").click(function() { $("#tbCell1").hide(); }); //Or this type$(
".Test").click(function() { $(".Test").hide(); });// $("P#PidClick").Click(function() { $("P#PidClick").hide(); });$(
});
"p.Test").click(function() { $(this).hide(); });//Functions --> ready,click,dblclick,focus and mouseover</
<script>style type="text/css">.Test
{
font-size:x-large;
}</
<
<
<
<
<style>p>If you click on me, I will disappear.</p>p class = "Test" >If you click on me, I will disappear.</p>p id="PidClick">First P Element with Class</p>p id="PidClick">Second P Element with Class</p>div id="test">Test</
<
<
<div>table id="tb" cellpadding="0" cellspacing="0">tr>td id="tbCell1">Table Cell1</
<td>td id="tbCell2">Table Cell2</
</
<
<
</
</
</td>tr>tr>td colspan="2" class="Test">Test CSS Class hide </td>tr>table>asp:Content>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.2.min.js"></script>script type="text/javascript">$(document).ready(
$(
$(
$(function() {"p").click(function() { $(this).hide(); });"#test").click(function() { $(this).hide(); });"#tbCell1").click(function() { $("#tbCell1").hide(); }); //Or this type$(
".Test").click(function() { $(".Test").hide(); });// $("P#PidClick").Click(function() { $("P#PidClick").hide(); });$(
});
"p.Test").click(function() { $(this).hide(); });//Functions --> ready,click,dblclick,focus and mouseover</
<script>style type="text/css">.Test
{
font-size:x-large;
}</
<
<
<
<
<style>p>If you click on me, I will disappear.</p>p class = "Test" >If you click on me, I will disappear.</p>p id="PidClick">First P Element with Class</p>p id="PidClick">Second P Element with Class</p>div id="test">Test</
<
<
<div>table id="tb" cellpadding="0" cellspacing="0">tr>td id="tbCell1">Table Cell1</
<td>td id="tbCell2">Table Cell2</
</
<
<
</
</
</td>tr>tr>td colspan="2" class="Test">Test CSS Class hide </td>tr>table>asp:Content>
04:59 |
Category:
JQuery
|
0
comments
Comments (0)