mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
button default demo: moved prevent navigation to # when clicking on anchor button to head
This commit is contained in:
parent
aeec6b3100
commit
2dd8539664
@ -12,6 +12,8 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$("button, input:submit, a", ".demo").button();
|
$("button, input:submit, a", ".demo").button();
|
||||||
|
|
||||||
|
$("a", ".demo").click(function() { return false; });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
@ -24,9 +26,9 @@
|
|||||||
|
|
||||||
<button>A button element</button>
|
<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 -->
|
</div><!-- End demo -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user