Помогите пожалуйста оживить блоки. Как через ajax передать те, что я выделил ?
$('.phone').click(function(){
$(this).toggleClass('on');
});
$('.month').click(function(){
$(this).toggleClass('on');
});
.phone, .month {
display: inline-block;
color: #fff;
font-weight: bold;
cursor: pointer;
text-transform: uppercase;
padding: 5px 10px;
margin: 0 0 10px 0;
width: 120px;
text-align: center;
position: relative;
}
.on::after {
position: absolute;
bottom: 0;
left: 10px;
content: '•';
}
.phone{
background-color: #191919;
}
.month {
background-color: gray;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="phones-wrap">
<div class="phone nokia">nokia</div>
<div class="phone xiaomi">xiaomi</div>
<div class="phone iphone">iphone</div>
</div>
<br>
<div class="credit-wrap">
<div class="month one">one</div>
<div class="month two">two</div>
<div class="month three">three</div>
</div>