Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is $.expr[":"] in javascript or jQuery?

here is the link to original code: http://css-tricks.com/snippets/jquery/make-jquery-contains-case-insensitive/#comment-518214

http://css-tricks.com/snippets/jquery/make-jquery-contains-case-insensitive/#comment-518214

1) in th above code, what is $.expr[:]? 2) what is $.expr.createPseudo?

I can't find any document about it!!! Why they provide this without document? very frustrated!!!!!!!!!!!

like image 439
Nicolas S.Xu Avatar asked Aug 18 '13 02:08

Nicolas S.Xu


1 Answers

1) in th above code, what is $.expr[:]? 2) what is $.expr.createPseudo?

It's how you extend Sizzle selectors. See the docs.

Sizzle is the DOM query engine used by jQuery.

like image 192
Fabrício Matté Avatar answered Oct 13 '22 11:10

Fabrício Matté