Numeric or Decimal Value allowed in Column of IG
Numeric or Decimal Value allowed in Column of IG
1) Execute when Page Loads
numeric values as text input
$(".numeric_allowed").bind("keypress", function (e) {
var keyCode = e.which ? e.which : e.keyCode
if (!(keyCode >= 48 && keyCode <= 57)) {
return false;
}else{
}
});
Value with Decimal as text input
$(". numeric_allowed").bind("keypress", function (e) {
var keyCode = e.which ? e.which : e.keyCode
if (!(keyCode >= 48 && keyCode <= 57) && !(keyCode == 46)) {
return false;
}else{
}
});
2) go to Advance (Css Classes) propoerty of page item or column
CSS Classes= numeric_allowed
Comments
Post a Comment