Skip to content
Browse files

button class

  • Loading branch information...
1 parent d440649 commit 5bd5d49442bf053c521522c0a2f9e24af0166a45 @unworn unworn committed Sep 11, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 songarray_toggle.html
View
8 songarray_toggle.html
@@ -11,30 +11,30 @@
<body>
<!-- show Alternative songs -->
- <altbutton>Alternative</altbutton>
+ <button class="alt">Alternative</button>
<div id="showaltsongs">
<script type="text/javascript" language="JavaScript">
alternative();
</script>
</div>
<script>
- $("altbutton").click(function () {
+ $("button.alt").click(function () {
$("#showaltsongs").toggle("slow");
});
</script>
</br>
<!-- show Classical songs -->
- <classbutton>Classical</classbutton>
+ <button class="class">Classical</button>
<div id="showclasssongs">
<script type="text/javascript" language="JavaScript">
classical();
</script>
</div>
<script>
- $("classbutton").click(function () {
+ $("button.class").click(function () {
$("#showclasssongs").toggle("slow");
});
</script>

0 comments on commit 5bd5d49

Please sign in to comment.
Something went wrong with that request. Please try again.