mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +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">
|
||||
$(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 -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user