how do the plugins work?
how do the plugins work?
what is wrong with this plugin? text is not added!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html lang="en">
- <head>
- <title>jQuery plugin: reverseText demonstration</title>
- <script type="text/javascript" src="jquery-1.4.2.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- (function($) {
- $.fn.addText = function(params) {
- $(this).append('See on test');
- };
- })(jQuery);
- $('#kala').addText({});
- </script>
- <div id="kala"></div>
- </body>
- </html>