Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- $.fn.myplug = function(options) {
- var _this = this[0];
- switch(options) {
- case 'Test1':
- _this.innerHTML = 'Test1!';
- break;
- default:
- _this.innerHTML = 'Test2';
- break;
- }
- return this;
- };
- })(jQuery);
Add Comment
Please, Sign In to add comment