Validating a number in HTML input via JavaScript doesn't work?

Considering you have defined num() and it works As you are adding the input. Number dynamically you would need to use live $('. Number').

Live('keyup change',function(){ $(this). Val($(this).val(). Replace(/\D/g,'')); }) Demo jsfiddle.net/aVF7M/1.

Considering you have defined num() and it works. As you are adding the input. Number dynamically you would need to use live - $('.

Number'). Live('keyup change',function(){ $(this). Val($(this).val().

Replace(/\D/g,'')); }); Demo jsfiddle.net/aVF7M/1.

1 All those jQuery objects and function calls to get and set a property that can be accessed directly: this. Value = this.value. Replace(/\D/g,'') is very much faster.

– RobG Oct 11 at 7:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions