I am trying to replace the text inside all the p tags which has a particular class. My html code is
<p class="fb-question">Lorem ipsum dolor sit amet, {{2fill}} ea eos eirmod dissentiet efficiantur. Porro facilisi pericula vim id.</p>
<p class="fb-question">tempor verear eum no. Facer {{2fill}} assum ut eos. Odio mutat vis ad.</p>
<p class="fb-question">Liber noster ei cum. Sed {{2fill}} an electram comprehensam, at hendrerit urbanitas eam,</p>
<p class="fb-question">etiam minimum mentitum cu {{2fill}} cum, ea rebum legimus utroque nam.</p>
and scripts
jQuery('.fb-question').each(function(){
jQuery(this).html().replace('{{2fill}}', '<span id="blank"></span>');
});
but the issue is that the scripts are not going inside the each function even though the html class is present. Can someone tell me what I am missing here.