hi all,
managed to find some code on this but i just get errors when i try.
i have many text fields for numeric inputs within an ASP input screen.
On blur of each of these i run a check to make sure that the value entered is numeric.
Before it is submitted a calc runs to check that the 2 accounts balance.....
now i need to make sure i only allow 2 dp per text field.
had an idea (that i would use with vbscript) of checking the text field for a decimal '.', getting the place of it within the field, taking this off the length which would give me the trailing decimal places
if above 2 then error..... quite simple i thought, although i'm struggling with javascript, i seem to get so far then when searching for the '.' itself causes me issues.
also is trim a vbscript, javascript or vba function, can't remember, think i may need to utilise this also
cheers in advance for any help / suggestions
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*
managed to find some code on this but i just get errors when i try.
i have many text fields for numeric inputs within an ASP input screen.
On blur of each of these i run a check to make sure that the value entered is numeric.
Before it is submitted a calc runs to check that the 2 accounts balance.....
now i need to make sure i only allow 2 dp per text field.
had an idea (that i would use with vbscript) of checking the text field for a decimal '.', getting the place of it within the field, taking this off the length which would give me the trailing decimal places
if above 2 then error..... quite simple i thought, although i'm struggling with javascript, i seem to get so far then when searching for the '.' itself causes me issues.
also is trim a vbscript, javascript or vba function, can't remember, think i may need to utilise this also
cheers in advance for any help / suggestions
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*