Hay tanta documentación y he mirado docenas de artículos. No sé qué estoy haciendo mal, pero esencialmente lo que estoy tratando de hacer es mostrar texto en un lapso con varias líneas:
Lapso:
<span style="color:red" id="errors"></span> var errText = "<b>NOTE:</b> There are " + "<b>" + errors.length + "</b>" + “ issues that must be addressed. Please make changes as necessary.";El objetivo es hacer que este texto se vea así:
NOTE: There are 3 issues that must be addressed. Please make changes as necessary.Intenté usar , probé \n pero nada parece funcionar.
Ej. 1:
var errText ="<b>NOTE:</b> There are " + "<b>" + errors.length + "</b>" + “ issues that must be addressed.\n Please make changes as necessary.";Ej. 2:
var errText ="<b>NOTE:</b> There are " + "<b>" + errors.length + "</b>" + “ issues that must be addressed.\ Please make changes as necessary.";¿Qué estoy haciendo mal?
<span>NOTE: There are 3 issues that must be addressed. <br> Please make changes as necessary</span>