Jquery .change() function not working with dynamically populated SELECT list

前端 未结 7 928
灰色年华
灰色年华 2020-12-05 14:13

I have a select field that is dynamically populated with an ajax call that simply returns all the HTML select options. Here is the part of the PHP that just echo\'s the sel

7条回答
  •  臣服心动
    2020-12-05 14:28

    Use delegate() function instead. More about that here http://www.elijahmanor.com/differences-between-jquery-bind-vs-live-vs-delegate-vs-on/

提交回复
热议问题