Skip to main content

Bug Tracker

Side navigation

Ticket #6397: JQueryBasic.html
File JQueryBasic.html, 0.9 KB (added by moooon, April 04, 2010 12:43PM UTC)
<!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="Scripts/jquery-1.4.1.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function() {
            $(".numericinput").live("paste", function() { alert(1); });
            $("#holder").append('<input type="text" class="numericinput" value="new" />');


        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" class="numericinput" value="80" />
        <input type="text" class="numericinput" />
        <input type="text" class="numericinput" />
        <div id="holder">
        </div>
    </div>
    </form>
</body>
</html>

Download in other formats:

Original Format