returning sum from server side by json

后端 未结 2 1539
别那么骄傲
别那么骄傲 2021-01-28 02:53

I am adding two text box values by onkey up event. every time data entered, will be submited to the server and then result will be returned by json. I am getting a text box by j

2条回答
  •  囚心锁ツ
    2021-01-28 03:25

    When you asynchronously add the combo box (or any element) it does not get the keyup event binding. You have to use .live() like so:

    $(".submitme").live("keyup", function() {
        // stuff
    });
    

    See the jQuery documentation for details on how .live() works.

提交回复
热议问题