Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2007, 05:21 AM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Limit input range

Hi

Could anyone help me out? I'm new to html and I'd like to set a form box so that it can only accept a number from 1 to 45, how do I go about it?

Thanks
 
Old November 8th, 2007, 09:40 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You can use JavaScript and a regular expression
http://www.google.com/search?source=...ar+expressions

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit of POST g2000 Classic ASP Basics 2 October 10th, 2005 04:20 AM
upper limit crmpicco Javascript How-To 2 October 4th, 2005 04:02 AM
Creating a report receiving input on range Jnaylor28 Access VBA 1 July 12th, 2005 11:54 PM
Limit the Size of String Input phungleon Classic ASP Databases 3 May 4th, 2005 11:31 PM
64K Limit jtrifts SQL Server 2000 1 March 9th, 2005 12:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.