更新时间:2023-11-17 23:39:04
( document )。ready( function (){
( button)。click(˚F unction (){
( #div1跨度>)淡出();
Jquery code not working properly in any browser.. plz help
this is my code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="faidout.aspx.cs" Inherits="faidout" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="jquery-1.9.1.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("button").click(function () {
$("#div1").fadeOut();
$("#div2").fadeOut("slow");
$("#div3").fadeOut(4000);
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<button>Click on me</button>
<br /><br />
<div class="div1" style="background-color:Green; width:130px; height:50px;"></div><br />
<div class="div2" style="background-color:Red; width:130px; height:50px;"></div><br />
<div class="div3" style="background-color:Purple; width:130px; height:50px;"></div>
</div>
</form>
</body>
</html>
(document).ready(function () {
("button").click(function () {
("#div1").fadeOut();