jquery ui autocomplete positioning wrong

前端 未结 8 869
再見小時候
再見小時候 2020-12-01 06:17

using jquery ui 1.8 trying autocomplete

Everything works apart from that the ui-menu isn\'t positioned under my input element, but rather in the top left corner.

8条回答
  •  攒了一身酷
    2020-12-01 06:50

    Another similar issue, if you're using a CDN to serve your jquery files, make sure you use a specific version, i.e.:

    //ajax.googleapis.com/ajax/libs/jquery/1.7.2/
    

    Rather than the 'latest' version:

    //ajax.googleapis.com/ajax/libs/jquery/1/
    

    This will take away the possibility of conflicts in future releases of jquery, which can often break an app when the 'latest' version on jquery is updated on the CDN.

提交回复
热议问题