I am a newbie in WordPress not totally but 6 months. So I am finding the new thing and practicing on WordPress. I want to know that how can I implement shortcode on click event means
I have buttons on my index.php page like this:
<button>Video</button>
<button>audio</button>
and with these video and audio buttons, I want to attach the WordPress inbuilt video and audio shortcodes and if I click on any of the two buttons.
suppose if I have clicked on video button the video tag appears under the video buttons and when I again click on video button the video the video tag again disappears.