Bug Tracker

Ticket #6397: JQueryBasic.html

File JQueryBasic.html, 892 bytes (added by moooon, 12 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head runat="server">
4    <title></title>
5
6    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
7
8    <script type="text/javascript">
9
10        $(document).ready(function() {
11            $(".numericinput").live("paste", function() { alert(1); });
12            $("#holder").append('<input type="text" class="numericinput" value="new" />');
13
14
15        });
16    </script>
17
18</head>
19<body>
20    <form id="form1" runat="server">
21    <div>
22        <input type="text" class="numericinput" value="80" />
23        <input type="text" class="numericinput" />
24        <input type="text" class="numericinput" />
25        <div id="holder">
26        </div>
27    </div>
28    </form>
29</body>
30</html>