button default demo: moved prevent navigation to # when clicking on anchor button to head

This commit is contained in:
Richard Worth 2010-03-18 10:38:25 +00:00
parent aeec6b3100
commit 2dd8539664

View 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 -->