aboutsummaryrefslogtreecommitdiffstats
path: root/demos/button
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-18 10:38:25 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-18 10:38:25 +0000
commit2dd8539664f0ed48417caab8474f7c0ed18da326 (patch)
treeda65bc030063b8ac7df02f6d25b58828211abf52 /demos/button
parentaeec6b31001543b9772f8b4bbcf46d9364967566 (diff)
downloadjquery-ui-2dd8539664f0ed48417caab8474f7c0ed18da326.tar.gz
jquery-ui-2dd8539664f0ed48417caab8474f7c0ed18da326.zip
button default demo: moved prevent navigation to # when clicking on anchor button to head
Diffstat (limited to 'demos/button')
-rw-r--r--demos/button/default.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/button/default.html b/demos/button/default.html
index f092a5375..700c64bcc 100644
--- a/demos/button/default.html
+++ b/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 -->