You can add these functions if you want, but you will need to make sure that you also download jQuery itself and the plugin to modify. If you get these errors (that jQuery or "$" is not defined), you did not do it correctly.
Now, although itβs true that you can add these features, I need to wonder what the point is. If I did this, for example:
$.fn.css.myFunction = function() { return "hello world"; };
then you could call it:
var str = $.fn.css.myFunction();
but so what? What is the use of this? I do not think this is very useful.
source share