live: http://jsfiddle.net/2KRHh/3/
$('#price').keyup(function(){
$('#price').val($('#price').val().replace('..', '.'));
})
I would like have only one dot in input. This working, but only for .. digit. If i still hold comma this not working, so i would like replace this with regular expression - if is two or more dot this should replace one more.
This should also remove dot if is in different place - for example
11.23.32 - should remove second dot.