Answer the question
In order to leave comments, you need to log in
jQuery - postfix usage?
Help to make such a thing so that instead of $(element
)
.action you can use element.$.action
().action is no longer cool.
Your ideas?
Answer the question
In order to leave comments, you need to log in
You want something very strange and wrong, but still:
Object.prototype.__defineGetter__('$', function() { return jQuery(this);})
Works not everywhere (checked in Chrome, in theory it should still work in Firefox).
After that, the global function $() will break (jQuery() will remain).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question