dimanche 31 juillet 2016

Jquery Append or Insert Text After Specific Words

How to append word "THIRD" after these two words "FIRST SECOND" but before word "FOURTH".

This appends after "FOURTH": https://jsfiddle.net/bagn96ee/

<p id="para">FIRST SECOND FOURTH</p>
$('#para').append('THIRD');

Aucun commentaire:

Enregistrer un commentaire