]> source.dussan.org Git - jquery-ui.git/commitdiff
button default demo: moved prevent navigation to # when clicking on anchor button...
authorRichard Worth <rdworth@gmail.com>
Thu, 18 Mar 2010 10:38:25 +0000 (10:38 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 18 Mar 2010 10:38:25 +0000 (10:38 +0000)
demos/button/default.html

index f092a537539deea8e7d0c5c642bdff4fe6da7586..700c64bcc8d1b75ad37b316d1a80529b1b0fa6df 100644 (file)
@@ -12,6 +12,8 @@
        <script type="text/javascript">
        $(function() {
                $("button, input:submit, a", ".demo").button();
+               
+               $("a", ".demo").click(function() { return false; });
        });
        </script>
        <style>
@@ -24,9 +26,9 @@
 
        <button>A button element</button>
        
-       <input type="submit" value="A submit button">
+       <input type="submit" value="A submit button"/>
        
-       <a href="javascript:void(0)">An anchor</a>
+       <a href="#">An anchor</a>
 
 </div><!-- End demo -->