An anchor

Quelltext

<!doctype html> <html> <head> <meta charset="utf-8"> <title>Beispiel</title> <link rel="stylesheet" href="css/smoothness/jquery-ui-1.10.4.min.css"> <script src="js/jquery-1.10.2.js"></script> <script src="js/jquery-ui-1.10.4.min.js"></script> <script> $(function() { $( "input[type=submit], a, button" ) .button() .click(function( event ) { event.preventDefault(); }); }); </script> </head> <body> <button>A button element</button> <input type="submit" value="A submit button"> <a href="#">An anchor</a> </body> </html>