I am having a problem changing the input value text to reflect the same on the site in real time. I am able to change the buttons text value in the html but it does not reflect the change on the site. I assume this is b/c it changes the value after the page loads. Is there a way to make this happen? I need to change its value to Spanish and this cart page is a hosted solution so it must be done by javascript/jQuery.
Any help would be awesome!
Here is the code.
$( document ).ready(function() {
$('.actions input.return-cart').val('Retornar al Carrito');
});
Here is the html that shows it changed.
<div class="actions">
<input type="submit" class="button return-cart" id="ctl00_ctl00_mainContent_scPageContent_backToCartButton" value="Retornar al Carrito" name="ctl00$ctl00$mainContent$scPageContent$backToCartButton">
</div>
However the button shows "Return to Cart" instead of "Retornar al Carrito"