Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery tokeninput filter query send extra parameters

How can I set extra parameters to the query like

q=myseed&filter=1,2,34

better will be with a attached event like

onFocus:function(){
  //retrieve extra params
}

Here is a link to the plugin - http://loopj.com/jquery-tokeninput/

like image 975
No Acta Avatar asked Aug 14 '12 11:08

No Acta


1 Answers

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

like image 61
Yasser Shaikh Avatar answered Oct 24 '22 12:10

Yasser Shaikh