Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26929

Re: In mobile devices - How to restrict entering non-numeric values in textfield,

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: In mobile devices - How to restrict entering non-numeric values in textfield,
Date 2015-02-25 16:18 +0000
Organization A noiseless patient Spider
Message-ID <mcksk5$gmo$5@dont-email.me> (permalink)
References <5ef65a57-4d6f-4398-9a0e-bea9039837dc@googlegroups.com>

Show all headers | View raw


On Wed, 25 Feb 2015 07:46:25 -0800, anjithkumar.garapati wrote:

> I tried using event.which >47 and lessthan 57, no luck in mobile keypad
> they are smileys, different symbols which are getting entered. No clue
> how to fix it, can anyone please help me out

assuming html5, <input type="number" ......>

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

In mobile devices - How to restrict entering non-numeric values in textfield, anjithkumar.garapati@gmail.com - 2015-02-25 07:46 -0800
  Re: In mobile devices - How to restrict entering non-numeric values in textfield, Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-25 16:18 +0000
    Re: In mobile devices - How to restrict entering non-numeric values in textfield, anjithkumar.garapati@gmail.com - 2015-03-04 02:45 -0800
      Re: In mobile devices - How to restrict entering non-numeric values in textfield, "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-04 11:54 +0100
        Re: In mobile devices - How to restrict entering non-numeric values in textfield, Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-03-04 08:54 -0300
          Re: In mobile devices - How to restrict entering non-numeric values in textfield, "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-04 17:39 +0100
            Re: In mobile devices - How to restrict entering non-numeric values in textfield, Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-03-04 16:46 -0300
              Re: In mobile devices - How to restrict entering non-numeric values in textfield, Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-05 21:20 +0100
                Re: In mobile devices - How to restrict entering non-numeric values in textfield, "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-06 08:54 +0100
                Re: In mobile devices - How to restrict entering non-numeric values in textfield, Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-03-06 09:05 -0300
                Re: In mobile devices - How to restrict entering non-numeric values in textfield, "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-06 13:23 +0100
                Re: In mobile devices - How to restrict entering non-numeric values in textfield, Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-03-06 13:49 -0300
                Re: In mobile devices - How to restrict entering non-numeric values in textfield, Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-06 20:51 +0100

csiph-web