If you press the button, the ui disappears

Asked 1 years ago, Updated 1 years ago, 92 views

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;

jquery css3

2022-09-22 18:27

1 Answers

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
})


2022-09-22 18:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.