We all know that it’s possible to define custom jQuery selectors that start with :. For example:
// :textfield definition
$.expr[':'].textfield = function(obj) {
return $(obj).is("input[type='text']");
};
// Use
$(":textfield").css({"background-color": "#700"});
Just out of curiosity, is it possible to define a custom jQuery selector that doesn’t start with : ?
Based on what I have seen, I think the answer is: no.