MK1.0!
4-8-06, 02:17 PM
i have got this script and it only allows integers in a textbox (numbers only) but how do i change the script so it also allows decimals these ->.<- ??
function intOnly(i) {
if(i.value.length>0) {
i.value = i.value.replace(/[^\d]+/g, '');
}
}
function intOnly(i) {
if(i.value.length>0) {
i.value = i.value.replace(/[^\d]+/g, '');
}
}