In the below code i have a textbox when i try to enter a number (ie)10 it should convert it to 10.00.But i tried it doesn't work for me and onblur is also not working.pls help me to solve the issue.
<script>
function sample(){
var num = 10;
var result = num.toFixed(2);
}</script>
<asp:TextBox ID="value" onblur="sample(this)" ></asp:TextBox>