Please help me(java script)
-
hai friends, my name is kishore kumar actually i am getting one problem ,but i am unable to solve it please help me That is : i will enter text(number), that should be changed into currency formate that means suppose if i enter 99 in a textbox ,that shuld be changed to 99.00 and i have to show it as currency formate i have three text boxes in two text boxes, i will enter values , in third text box, the multiply of those two text boxes values shuld be displayed with currency formate if i enter first text box : 9 second text box : 11 out put : third text box: 99.00 ,shuld be displayed please help me,that should be done at client side
-
hai friends, my name is kishore kumar actually i am getting one problem ,but i am unable to solve it please help me That is : i will enter text(number), that should be changed into currency formate that means suppose if i enter 99 in a textbox ,that shuld be changed to 99.00 and i have to show it as currency formate i have three text boxes in two text boxes, i will enter values , in third text box, the multiply of those two text boxes values shuld be displayed with currency formate if i enter first text box : 9 second text box : 11 out put : third text box: 99.00 ,shuld be displayed please help me,that should be done at client side
-
hai friends, my name is kishore kumar actually i am getting one problem ,but i am unable to solve it please help me That is : i will enter text(number), that should be changed into currency formate that means suppose if i enter 99 in a textbox ,that shuld be changed to 99.00 and i have to show it as currency formate i have three text boxes in two text boxes, i will enter values , in third text box, the multiply of those two text boxes values shuld be displayed with currency formate if i enter first text box : 9 second text box : 11 out put : third text box: 99.00 ,shuld be displayed please help me,that should be done at client side
Try this javascript function. This might be helpful.
function ChangeToCurrency (TargetString)
{
var Index;if ((Index = TargetString.indexOf(".")) == -1) TargetString += ".00" else if (TargetString.substr(Index + 1).length == 0) TargetString += "00" else if (TargetString.substr(Index + 1).length == 1) TargetString += "0" return (TargetString); }
Regards, Venkatesh Mookkan. Software Engineer, India