Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - HTML string of jquery variable

0 votes
added Jul 26, 2019 in jQuery by LC Marshal Captain (25,840 points)
// This variable string contains HTML character
nextData = '<div>this is test data for next article></div>';

// Can't use them inside each(function()
if(infEl.length) {


1 Response

0 votes
responded May 18, 2020 by lcjr Second Warrant Officer (3,820 points)
var prlxLabel = '<div class="prlxlabel">Scroll to continue with content</div>',
    prlxLabelEnd = '<div class="prlxlabel end">Scroll to continue with content</div>';
contentParaEnd.prepend(prlxLabelEnd); - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.