Remember, when we evaluate JSON data, we have to add the parens around it to get it to evaluate without error.Now that we have a handle on the core anatomy of a custom jQuery selector method, let's look at a concrete example. Below, I have a ... 続きを読む
:path is a useful jQuery selector. It filters out anchor elements where the href attribute matches the window.location path, including ancestors. Adding active classes is very common in navigational elements in order to style an 'active state... 続きを読む
A while ago I published an article explaining the utter awesomeness of extending jQuery’s filter selectors. Building on that here’s something new; a regular expression selector. jQuery’s current attribute selectors (CSS3) do allow basic re... 続きを読む
I’m sure you all know that it’s possible to create plugins and extend various aspects of the jQuery JavaScript library but did you know you could also extend the capabilities of it’s selector engine? Well, you can! For example, you might w... 続きを読む