use ajax to autocomplete

后端 未结 1 1592
攒了一身酷
攒了一身酷 2021-01-23 23:31

Maybe u can help with with some ajax issue.

I have AUTO COMPLETE code - I type the city name and the code auto-completes it for me and also get the city ID and supposed

相关标签:
1条回答
  • 2021-01-24 00:14

    Try using a div instead of a span tag for ajax_response_city. The html gets messed up and your selections won't work anymore.

    I put together an example: http://jsfiddle.net/me2loveit2/86T4f/

    <div id='ajax_response_city' class='ajax_response'></div>
    

    I would also start using proper html (like put li elements in ul or ol) to avoid issues like that.

    0 讨论(0)
提交回复
热议问题