javascript - remove symbols from text field with jquery -


I have the function to remove symbols from text. How to keep commas and dots (.,) In the text field ? "Set up", "set up" (function), {setTimeout (jQuery.proxy (function ()} {/ b> this.val (this.val (). Substitution (/ [^ 0- 9] / g, ''));}, $ (this)), 0);});

try it

  this.val ( Change .val (). (/ [^ 0-9.] / G, ''));  

Comments

Popular posts from this blog

php - Select box validation (in laravel) -

pandas - Iterate on Groupby Object's fields -

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -