Replace text using JQuery
Description
This code is will replace text dynamically. Just choose the right selector and replace the text that says old text2 and new text2
This code is will replace text dynamically. Just choose the right selector and replace the text that says old text2 and new text2
JavaScript Code
<script type="text/javascript">
$(document).ready(function() {
$('.cartbuttonright p').text(function(i, oldText) {
return oldText === 'old text2' ? 'new text2' : oldText;
});
});
</script>