Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37621
| From | Martin Leese <please@see.Web.for.e-mail.INVALID> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Input field with a single character |
| Date | 2019-10-23 09:40 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <qops8u$s1p$1@dont-email.me> (permalink) |
| References | <44qdnScci8v4cjLAnZ2dnUU7-bnNnZ2d@westnet.com.au> |
Andrew Poulos wrote: > I had a text field with max="1" in which the user is to enter a single > "symbol" (such as an exclamation mark, period, single letter, single > numeral...) It also needed to accept single emoji. > > On Windows with Chrome an emoji has a length of 2 (at least the ones I > tested have) so I changed the field to max="2". It needs to return a > single "symbol" so I need to be able to tell two characters from a > single emoji; Maybe you need a length of 3 :-) -- Regards, Martin Leese E-mail: please@see.Web.for.e-mail.INVALID Web: http://members.tripod.com/martin_leese/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Input field with a single character Andrew Poulos <ap_prog@hotmail.com> - 2019-10-23 17:12 +1100
Re: Input field with a single character "R.Wieser" <address@not.available> - 2019-10-23 08:24 +0200
Re: Input field with a single character JJ <jj4public@vfemail.net> - 2019-10-23 15:28 +0700
Re: Input field with a single character Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-10-23 12:24 +0000
Re: Input field with a single character Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-10-23 09:40 -0600
csiph-web