I am having three different blocks it is hourly pricing, Monthly Pricing and Schedule a call.
By default it will show the details for hourly pricing.
When the user clicks on Monthly Pricing only the amount values should be changed.
Here is the code for that:
$('button').click(function() {
$('button').removeClass('active');
$(this).addClass('active');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<div class="hourly">
<button class="hourlypricing active">Hourly Pricing</button>
<span class="FyfR" data-reactid="5">or</span>
<button class="monthlypricing">Monthly Pricing</button>
</div>
<div class="col-md-4 beginner">
<h3>Beginner</h3>
<div style="transform:translateY(0rem);opacity:1;" class="">
<span class="_dollar" >$</span>
<span class="amount" >12</span>
<span class="amount" >1999</span>
<span class="hour" >/ hour</span>
<span class="month" >/ month</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 pro">
<h3 >Pro</h3>
<div style="transform:translateY(0rem);opacity:1;" class="" >
<span class="dollar" >$</span>
<span class="amount" >15</span>
<span class="amount" >2499</span>
<span class="hour" >/ hour</span>
<span class="month" >/ month</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 ninja">
<h3 >Ninja</h3>
<div style="transform:translateY(0rem);opacity:1;" class="" >
<span class="dollar" >$</span>
<span class="amount" >18</span>
<span class="amount" >2999</span>
<span class="hour" >/ hour</span>
<span class="month" >/ month</span>
</div>
</div>
</div>
</div>
</div>
By default, it should show hourly basis amount when user clicks on Monthly basis only the amount should be changed as if the user selected monthly the amount it should show the amount as $1999/month Here is the fiddle link for that.