i m appending text values in a string and on each iteration i want to move to a new line. my code is :
$lblEmployee.html($lblEmployee.html()+" "+ dataEmployees[i]["FirstName"] +" " + criteriaTestedEmployees[i]["LastName"]);
I tried putting \n at the end like :
$lblEmployee.html($lblEmployee.html()+" "+ dataEmployees[i]["FirstName"] +" " + criteriaTestedEmployees[i]["LastName"] + "\n");
But it doesn’t work.
May someone pls suggest a way..Thanks in advance..
You should use
<br>instead of the \n since that is correct HTML syntax for a new line