Display : I set about 4 tags of a to fixed ui with scroll.
It was so annoying that I also made another ui with a tag
If you press the button, it covers the fixed ui, and if you press it again, I want to show it
When I googled it, I was told to use Hide() in jquery, but I don't know how to use it in detail ;m;
I've made a demo so try to apply it roughly.
$('#switch_menu').on('click', function () {
var text = $(this).text()
$(this).text (text == 'hide' ? '↓show' : '↑hide')
$('#ui_menu').Toggle() // This is important
})
© 2024 OneMinuteCode. All rights reserved.