Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Will jQuery search for the ID before filtering other parameters in the selector?
- $('#myID a') // Does this find #myID and filter by a?
- $('#myID').find('a')
- $('#myID .myClass')
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
Add Comment
Please, Sign In to add comment