Follow the code below:
$(document).ready(function() {
$('#1ano_card_title').text('R$20,00');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><h2id="1ano_card_title" class="card-title pricing-card-title">
R$10,00
<small class="text-muted">/ 1 ano</small>
</h2>
I've tried it this way:
$('#1ano_card_title').text('R$20,00');
But the element small
disappears. How do I change only the value? Change from 10.00 to 20.00.