Using Ajax To Populate A Select Box

后端 未结 3 547
悲&欢浪女
悲&欢浪女 2020-12-19 03:17

Ok, this is my very first attempt at Ajax and its driving me insane as I really cant get my head round it. What im trying to do is populate the first box with the customers

3条回答
  •  轮回少年
    2020-12-19 03:52

    Maybe try live instead of on. It is deprecated but I found out is more likely to work when element is not loaded.

    $$('#customer').on('change', function (){

    changed to

    $('#customer').live('change', function (){

提交回复
热议问题