I was working on Bootstrap Pop Up Modals.
I have 2 Buttons named Button1 & Button2.
&
I have 2 Modals named Modal1 & Modal2.
Note : Button2 is inside the Modal1 & Button1 is on the Web Page.
If I click Button1 , Modal1 should be Open & If I click Button2 that is inside the Modal, then Modal1 should be hide automatically and Modal2 should be shown.
I am doing it using jQuery Yet & It's working Fine.
<script>
$('#button1').click(function()
{
$('#modal1').modal('hide');
$('#modal2').modal('show');
});
</script>
Question:
How I can do it using Pure JavaScript. ???????