number format tag

windows

Guest
whats the number format tag?<!--content-->There is no number format tag in HTML,you will have to use javascript Number objects function toFixed()<br />
<br />
var num = 2.01002354;<br />
alert(num.toFixed(2))<br />
<br />
will display<br />
2.01<!--content-->NO. What I want is to display a list as follows:<br />
1. ....<br />
2....<br />
3....<br />
............<!--content--><ol><br />
<li>List item 1</li><br />
<li>List item 2</li><br />
...<br />
<li>List item n</li><br />
</ol><!--content-->
 
Back
Top