mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
use button on accordion demo page with a button-eleement
This commit is contained in:
parent
b53bf774ce
commit
8e8094be4b
@ -7,6 +7,7 @@
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
|
||||
<link type="text/css" href="../demos.css" rel="stylesheet" />
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
@ -17,7 +18,7 @@
|
||||
$("#accordion").accordion({
|
||||
icons: icons
|
||||
});
|
||||
$("#toggle").toggle(function() {
|
||||
$("#toggle").button().toggle(function() {
|
||||
$("#accordion").accordion("option", "icons", false);
|
||||
}, function() {
|
||||
$("#accordion").accordion("option", "icons", icons);
|
||||
|
Loading…
Reference in New Issue
Block a user