0
How to make two buttons and trigger two divs show and hide respectively using js?
When button 1 is clicked only div1 is shown and vice versa.
3 Respuestas
+ 6
//Use jquery
button
div (display:none)
$("button").on('click', ()=>{
$('div').toogle()
} )
+ 1
Umm it should be easy, where is your attempt ?
0
Shudarshan Rai 👑 this will toggle in on button and div.