hi,
i am using radnumeric text box in my page and i used following javascript function to avoid both decimal point and negative symbol
function DecimalKeyPress(sender, args) {
var keyCharacter = args.get_keyCharacter();
if (keyCharacter == sender.get_numberFormat().DecimalSeparator ||
keyCharacter == sender.get_numberFormat().NegativeSign) {
args.set_cancel(true);
}
But there seems to be an issue with Firefox as delete key is not working. We found that both delete and decimal key return the same key character as 46. It works with all other browsers.
How can i fix this issue.
Regards
Jiju
i am using radnumeric text box in my page and i used following javascript function to avoid both decimal point and negative symbol
function DecimalKeyPress(sender, args) {
var keyCharacter = args.get_keyCharacter();
if (keyCharacter == sender.get_numberFormat().DecimalSeparator ||
keyCharacter == sender.get_numberFormat().NegativeSign) {
args.set_cancel(true);
}
But there seems to be an issue with Firefox as delete key is not working. We found that both delete and decimal key return the same key character as 46. It works with all other browsers.
How can i fix this issue.
Regards
Jiju