<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<!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 language="javascript" type="text/javascript" src="jquery-1.7.1.js"></script>
<script language="javascript" type="text/javascript">
$('#clickme').click(function () {
alert('Entered'); $('#book').animate({
opacity: 0.25, left: '+=50', height: 'toggle'
}, 5000, function () {
// Animation complete.
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="clickme" class="hiii">
Click here
</div>
<img id="book" src="Chrysanthemum.jpg" alt="" width="10" height="12" style="position: relative;
left: 10px;" />
</form>
</body>
</html>
<%@ Page Language=C# AutoEventWireup=true CodeFile=Default3.aspx.cs Inherits=Default3 %> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Share
you would need to wrap your function in the
$(document).readyfunction to ensure the DOM is available i.e.That would account for this missing handler. I think it’s the same issue as this SO question.