jquery :ibegins("xyz") selector

73 views Asked by At

I am using bootstrap selectpicker, there for livesearch

$searchBase.not(':ibegins("search keyword")');

is being used. What exactly ibegins do in selector and how it searches inside elements?

2

There are 2 answers

4
Julia Nething On BEST ANSWER

It looks like ibegins is a case-insensitive selector. It transforms the search term and the search text to all uppercase and then performs the search. You can see the code for that here at line 202.

1
Alex Denisov On

This is not a standard CSS pseudo class, so it is likely a custom selector defined by the author of the solution you are using. I would recommend reviewing the source code of Bootstrap SelectPicker for further clues.