<script>
jQuery( "#btn1" ).click(function() {
jQuery('.first').css("display","block");
jQuery('.second').css("display","none");
jQuery('#btn2').removeClass("btn_active");
jQuery('#btn1').addClass("btn_active");
});
jQuery( "#btn2" ).click(function() {
jQuery('.second').css("display","block");
jQuery('.first').css("display","none");
jQuery('#btn1').removeClass("btn_active");
jQuery('#btn2').addClass("btn_active");
});
</script>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter