For example for the method of jQuery height():
Code: Select all
/**
* Get/Set the height
* @param {String} value height in px
* @return
*/
$.prototype.height = function(value) {
if (value) {
return new jQuery;
} else {
return new Number;
}
};
$().height(100). | Need to Complete methods for jQuery Object
$().height(). | Need to Complete methods for Number Object
Thank you.