Answers for "tabs"

0

tabs

$('.modal-toggle').on('click', function(e) {
	  e.preventDefault();
	  var modalopen = $(this).data("openpopup");
	  $('.modal--'+modalopen).toggleClass('modal--visible');
	  var modaltype = $(this).data("popup");
	  $('.modal__content--'+modaltype).toggleClass('modal__content--visible');
			$('.modal__switch').on('click', function(e) {
			  $('.modal__content').removeClass('modal__content--visible');
			  var modaltypeb = $(this).data("popup");
			  $('.modal__content--'+modaltypeb).toggleClass('modal__content--visible');
			});
	});
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language