I need to create a function to allow numbers dot and comma. So anyone corrects the following function
function on(evt) { var theEvent = evt || window.event
Sometimes /^[0-9.,]+$/ is not work If not, then you could do something like this:
/^[0-9.,]+$/
/^(?:[\d-]*,?[\d-]*\.?[\d-]*|[\d-]*\.[\d-]*,[\d-]*)$/