Skip to content
Permalink
Browse files

button default demo: moved prevent navigation to # when clicking on a…

…nchor button to head
  • Loading branch information...
rdworth committed Mar 18, 2010
1 parent aeec6b3 commit 2dd8539664f0ed48417caab8474f7c0ed18da326
Showing with 4 additions and 2 deletions.
  1. +4 −2 demos/button/default.html
@@ -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 -->

0 comments on commit 2dd8539

Please sign in to comment.
You can’t perform that action at this time.