jQueryトグル機能を使用してdivを切り替えたいと思います。jQueryのトグルがマイページ内で機能しない
は、ここに私のコードです:
$(document).ready(function() {
$("#removeSongButton").click(function() {
$("#radioButton1").toggle();
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>
<asp:Button runat="server" ID="removeSongButton" Text="remove song" />
</div>
<div id="radioButton1">
<asp:RadioButtonList runat="server" ID="radioButton">
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
<asp:ListItem Text="3" Value="3"></asp:ListItem>
</asp:RadioButtonList >
</div>
i "がremoveSongButton" のdiv TOGעルアップをクリックして、すぐにダウンを切り替えるとき。多分ページをリロードすると思います。
の可能性のある重複(http://stackoverflow.com/questions/3708086/jquery-toggle-not-working)[jQueryの動作していないを切り替える] –
は、サーバ – charlietfl