I need to change the following text "Error(s) encountered" to "Veuillez vérifier l’information suivante:" I have not been able to do this without losing formatting in the other text.
The items in the unordered list below "Error(s) encountered" is not constant, it changes based on what the users leaves out
<div style="" class="BBFormValidatorSummary" id="PC17178_formWizard_formWizard_ctl08">
Error(s) encountered:
<ul>
<li>Email: Required</li>
<li>Email: Required</li>
<li>Cardholder's Name: Required</li>
<li>Credit Card Number: Required</li>
<li>Credit Card Type:
</ul>
</div>
This is what I tried but it removes the formatting:
$('#PC17178_formWizard_formWizard_ctl08').each(function() {
var text = $(this).text();
$(this).text(text.replace('Error(s) encountered:', 'Veuillez vérifier l’information suivante:'));
});
Here is the fiddle: http://jsfiddle.net/jelane20/y3Ej4/