Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18116
| From | "Tony Johansson" <johansson.andersson@telia.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Want to construct a function instead of the code for onkeyup |
| Date | 2013-01-16 22:51 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <kd77dq$tph$1@dont-email.me> (permalink) |
Hello! How should I write a function if I want to move the code that is executed for onkeyup ? <input type="text" name="depthBow" id="txtDepthBow" size="20" onkeyup="if (/[^0-9\.,]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.,]/g,'')" /> //Tony
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Want to construct a function instead of the code for onkeyup "Tony Johansson" <johansson.andersson@telia.com> - 2013-01-16 22:51 +0100
Re: Want to construct a function instead of the code for onkeyup Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-16 23:29 +0100
Re: Want to construct a function instead of the code for onkeyup "Tony" <tony.johansson@inport.com> - 2013-01-17 09:10 +0100
Re: Want to construct a function instead of the code for onkeyup "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-17 15:40 +0100
Re: Want to construct a function instead of the code for onkeyup "Tony" <tony.johansson@inport.com> - 2013-01-17 09:23 +0100
csiph-web