Jump to content
13/12/2011
@Matthew.. “Would it be possible for jQuery to detect when an ID is the first bit of a selector string and … do a getElementById call “
It does that. :)
https://github.com/jquery/jquery/blob/2a63b98/src/core.js#L141-143
Vote up?
13/12/2011
@Matthew.. “Would it be possible for jQuery to detect when an ID is the first bit of a selector string and … do a getElementById call “
It does that. :)
https://github.com/jquery/jquery/blob/2a63b98/src/core.js#L141-143