I would like to expand the jQuery selection so that it treats the given selection value as an identifier.
For example, when you execute $("foo.bar"), jQuery will try to select all the elements with the tag name foo and the class bar, but I want jQuery to select the element with the id foo.bar. Instead of deleting points and adding each time #, I would like to add as a function to jQuery so that I can do something like $("id:foo.bar").
Is this possible with jQuery? If so, can someone show me some examples?
Thank.
source
share