50 个jquery 好的用法

http://www.gbin1.com/technology/jquery/50jquerycodesnippetsforbetterjavascript/index.html

http://addyosmani.com/blog/50-jquery-snippets-for-developers/

How to Create A Nested Filter:
view plaincopy to clipboardprint?

    //a filter allows you to reduce the set of matched elements 
    //to those that match a given selector. In this case the query 
    //removes anything which doesn't (:not) have (:has) a child with 
    //class "selected" (.selected) 
    .filter(":not(:has(.selected))") 




你可能感兴趣的:(jquery)