Jquery Ui DatePicker, attaches to textbox but only works once, then all click events are disabled.

Posted by RubbleFord on Stack Overflow See other posts from Stack Overflow or by RubbleFord
Published on 2010-03-03T15:58:32Z Indexed on 2010/03/15 13:49 UTC
Read the original article Hit count: 360

Filed under:
|
|
|
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
    <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" type="text/css" media="all" />
    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#date').datepicker();
        });
    </script>
</head>
<body>
    <%--<form id="form1" runat="server">--%>
    <div>
        <input type="text" id="date" />
    </div>
    <%--</form>--%>
</body>
</html>

I've attached a datepicker to a text box and the first time I click it, it works a treat and populates the text box with the current date. It works fine in IE7 Comp mode, Chrome and Firefox. It works once or twice on IE8 but locks the browser up after that. One interesting note is the host operating system is Windows 2008 R2.

Any ideas?

© Stack Overflow or respective owner

Related posts about datepicker

Related posts about jQuery