peh1696
10-10-2004, 05:48 AM
I have a problem on newline function....
this is my code:
HTML code,
<p id="lblProductInfo"></p><p id="lblProduct"></p>
JavaScript code,
document.getElementById('lblProductInfo').innerHTML = strProdInfo
document.getElementById('lblProduct').innerHTML ="Grand total: \n"+intTotalPrice+"\n\n---------------------------------------\n"
When display,
Products VirusProtector Professional Quantities:1 GST: 27.27 Total: Aus 300 ---------------------------------------
Grand total: 327.27 ---------------------------------------
the "\n" (newline) function cant works....wat should i do?
TQ
Max
this is my code:
HTML code,
<p id="lblProductInfo"></p><p id="lblProduct"></p>
JavaScript code,
document.getElementById('lblProductInfo').innerHTML = strProdInfo
document.getElementById('lblProduct').innerHTML ="Grand total: \n"+intTotalPrice+"\n\n---------------------------------------\n"
When display,
Products VirusProtector Professional Quantities:1 GST: 27.27 Total: Aus 300 ---------------------------------------
Grand total: 327.27 ---------------------------------------
the "\n" (newline) function cant works....wat should i do?
TQ
Max