Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using NumberTextBox

If you only want numbers in a certain range to be accepted in a text box, NumberTextBox is your ticket. It works much like ValidationTextBox, but you can also add min and max constraints to the allowed values. Like ValidationTextBox, NumberTextBox supports the invalidMessage and promptMessage attributes.

The example numbertextbox.html accepts only numbers in the format #.##, with a minimum possible value of 0.00 and a maximum of 9.99.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint