jQuery combobox/autocomplete but editable

前端 未结 4 813
野趣味
野趣味 2021-02-11 00:50

I\'m using the jQuery Autocomplete but I need it to be editable. What I mean is that if a value isn\'t in the list, I need to capture the value they entered. Using the example

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 01:36

    I have no clue if this will help anyone, but by giving the input a name, the value was submitted.... (I removed the code that removed invalid entries, of course)

    var input = this.input = $("")
    

提交回复
热议问题