jquery tokeninput filter query send extra parameters

后端 未结 5 882
刺人心
刺人心 2020-12-21 00:51

How can I set extra parameters to the query like

q=myseed&filter=1,2,34

better will be with a attached event like

onFoc         


        
5条回答
  •  悲哀的现实
    2020-12-21 01:24

    Here is how you could do it, in the example below I am passing two extra param to the tokenInput url.

    this.$("#abcTextbox").tokenInput("url?someParam1=cricket&someParam2=yasser", {
        queryParam: "q"
    });
    

    Source

提交回复
热议问题