How do I pass an extra parameter to Jquery Autocomplete field?

前端 未结 8 1548
情书的邮戳
情书的邮戳 2020-12-08 12:41

I\'m using the JQuery Autocomplete in one of my forms.

The basic form selects products from my database. This works great, but I\'d like to further develop so that o

8条回答
  •  甜味超标
    2020-12-08 13:39

    jQuery("#whatJob").autocomplete(ajaxURL,{
        width: 260,
        matchContains: true,
        selectFirst: false,
        minChars: 2,
        extraParams: {  //to pass extra parameter in ajax file.
            "auto_dealer": "yes",
        },
    });
    

提交回复
热议问题