-
-
Save Kuprich/e56c5588526f826d8f4027f68e67c616 to your computer and use it in GitHub Desktop.
вкладки
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<div class="phone_link"> | |
<span>Ясная Поляна</span> / | |
<span>Рязань</span> | |
</div> | |
<div class="phone_cont"> | |
<span>8(927)-978-30-99</span> | |
<span>8(83546)-2-45-03</span> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$(".phone_link span:first-child").addClass("active"); | |
$(".phone_link span").click(function(){ | |
$(".phone_link span").removeClass("active").eq($(this).index()).addClass("active"); | |
$(".phone_cont span").hide().eq($(this).index()).fadeIn("slow"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment