Skip to content

Commit 2dd8539

Browse files
committed
button default demo: moved prevent navigation to # when clicking on anchor button to head
1 parent aeec6b3 commit 2dd8539

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demos/button/default.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<script type="text/javascript">
1313
$(function() {
1414
$("button, input:submit, a", ".demo").button();
15+
16+
$("a", ".demo").click(function() { return false; });
1517
});
1618
</script>
1719
<style>
@@ -24,9 +26,9 @@
2426

2527
<button>A button element</button>
2628

27-
<input type="submit" value="A submit button">
29+
<input type="submit" value="A submit button"/>
2830

29-
<a href="javascript:void(0)">An anchor</a>
31+
<a href="#">An anchor</a>
3032

3133
</div><!-- End demo -->
3234

0 commit comments

Comments
 (0)