custom matcher

unlike other dropdowns on this page, this 1 matches options only if the term appears in the beginning of the string as opposed to anywhere.

 

 

 

 

 

 

 

 

 

eg code:

  1. $(“#e17”).select2({
  2. matcher: function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())==0; }
  3. });

 

31 responses »

  1. This blog has inspired me to start focusing on my own blog

  2. d3 items says:

    I enjoyed your helpful writing. topnotch stuff. I hope you release many. I will carry on reading

  3. This article has inspired me to continue focusing on my own blog

  4. This writing has inspired me to continue focusing on my own blog

  5. arginine says:

    Greeting from across the world. interesting article I must return for more.

  6. Hi, i think that i noticed you visited my website so i got here to “go back the prefer”.I am trying to find things to enhance my web site!I assume its ok to use some of your ideas!!

  7. nootropic says:

    salutations from across the ocean. interesting blog I will return for more.

  8. nootropic says:

    salutations from across the world. detailed blog I will return for more.

  9. jailbreak says:

    Very interesting information!Perfect just what I was searching for!

  10. jailbreak says:

    Cheers, I just stopped by to visit your blog and thought I’d say I enjoyed myself.

  11. Very interesting info!Perfect just what I was looking for!

  12. d3 gold says:

    Very interesting information!Perfect just what I was looking for!

  13. Greeting from over the ocean. informative blog I shall return for more.

  14. I consider something really interesting about your web site so I saved to bookmarks .

  15. vitamin says:

    Very interesting info!Perfect just what I was searching for!

  16. Good Morning, I just stopped by to visit your blog and thought I’d say I had a great visit.

  17. l-tyrosine says:

    Real excellent information can be found on this blog.

  18. nootropics says:

    I appreciate your useful blog. topnotch work. I hope you release many. I will continue subscribing

  19. Very interesting info!Perfect just what I was looking for!

  20. aion kinah says:

    Greeting like your work have a ganders of mine

  21. Hello love, from a youthful woman follower, I love this type of thing! Keep going!

  22. fitness says:

    A powerful share, I just given this onto a colleague who was doing a bit of analysis on this. And he in reality bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading extra on this topic. If attainable, as you change into experience, would you thoughts updating your weblog with more details? It is extremely helpful for me. Large thumb up for this weblog post!

  23. IM Forum says:

    I got what you mean , regards for putting up.Woh I am happy to find this website through google. “The outcome of the war is in our hands the outcome of words is in the council.” by Homer.

  24. What’s Happening i’m new to this, I stumbled upon this I’ve discovered It positively helpful and it has aided me out loads. I’m hoping
    to contribute & assist different users like its aided me.
    Great job.

  25. mind matter says:

    Merely a smiling visitor here to share the love (:, btw great design. “Justice is always violent to the party offending, for every man is innocent in his own eyes.” by Daniel Defoe.

  26. its great stuff. thanks for sharing…waiting for your next update. lista de emails lista de emails lista de emails lista de emails lista de emails

  27. I wanted to thank you for this good read!! I absolutely enjoyed every little bit of it. I’ve got you saved as a favorite to check out new stuff you post…

  28. Having read this I thought it was rather informative. I appreciate you finding the time and energy to put this article together. I once again find myself spending a significant amount of time both reading and posting comments. But so what, it was still worthwhile!

As salam. Hi. Leave a Comment?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s