User Profile
Collapse
-
round up number to 2 decimal point
hi,
function cal(){
var rate = document.testin g.rate.value;
var calbal = document.testin g.invamt.value;
var totbalamt = Multiply(calbal ,rate);
document.testin g.myvalue.value = totbalamt;
}
i have this function declared. my question is: how to round up the result (myvalue) to 2 decimal point?
thx -
no range. any number can be used.
any suggestion on the way to solve it? Any code?
thxLeave a comment:
-
if the situation is:
User key in the number with decimal? how to verify that?
what i mean is if user key in 10.00, it will b remain as 10.00.
If user key in 10, it will appear as 10.00.
thx..Leave a comment:
-
-
add decimal at the number
hi,
how to add .00 to a number after the onBlur event?
For example,if i key in 123 at the textbox, when i press the tab, it will be appear as 123.00.
thx. -
set focus
hi,
i am facing the probelm to set the cursor at my current field after the alert message box pop out. The cursor is set to next field after i click ok button at the warning msg box
if(amtlength <= 3 ){
alert ("Amount should greater than 1000");
document.form12 3.myid.focus();
}
any idea?
thx.. -
number round up
hai all,
how to round up the number to the thousand?
the situation like this:
<tr>
<td>Ist Amount</td>
<td>:</td>
<td><input name="stamt" type="text" " size="20" ></td>
</tr>
<tr>
<td>2nd Amount</td>
<td>:</td>...
No activity results to display
Show More
Leave a comment: