V
V
vetaliy_net2017-08-03 16:50:31
css
vetaliy_net, 2017-08-03 16:50:31

How to open hidden div on click?

Good day! How to make a hidden div open on click and hide the previous one? This is how it is implemented on this site: barbecue-black.ru when you click to pass the test

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artem78, 2017-08-03
@vetaliy_net

https://jsfiddle.net/crazzy/y1v0so3w/

S
Sergey, 2017-08-04
@Graff46

$("button").click(function(){
    $("div.raz").hide();
    $("div.dva").show();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question