how to get change event on created fields in jquery

Posted by frosty on Stack Overflow See other posts from Stack Overflow or by frosty
Published on 2010-06-13T12:14:21Z Indexed on 2010/06/13 12:22 UTC
Read the original article Hit count: 162

Filed under:

I have some jquery code the creates an quantity text box. Like so

<input type="text" value="1000" class="qty" name="[0].Quantity">

I wish to add some validation to this text box but can hit the method. I believe i need to utlise Live(). But can't quite figure out how this is implemented.

This is where i'm at

  $(document).ready(function () {
        $(".qty").change(checkValue);
    });

    function checkValue() {

        alert("on change");
    }

© Stack Overflow or respective owner

Related posts about jQuery