<!DOCTYPE html> <html> <head> <style> p { background:yellow; font-weight:bold; cursor:pointer; padding:5px; } p.over { background: #ccc; } span { color:red; } </style> </head> <body> <script> (function($){ $.fn.dialogwo = function(){ this.each(function(){ $(this).live("click",function(){ return false; }); }); } })(jQuery); $(document).ready(function(){ $("p").dialogwo(); }); </script> </body> </html>
Czy to bug czy błąd?