Purchase Solution

Javascript : validating form field for numeric value

Not what you're looking for?

Ask Custom Question

Write a JavaScript function to validate a text field on a form for holding a positive integer value, without using any inbuilt functions like IsNaN and so forth. If the text field contains a valid number then the JavaScript function will return "true", otherwise it will return "false" along with displaying a popup error message.

Purchase this Solution

Solution Summary

Solution presents a sample javascript function implementation that checks the argument text value for being a positive integer, without using any inbuilt functions for this purpose. Sample html file is also provided with the solution for quick testing.

Solution Preview

Following JavaScript function will validate it's argument for being a positive integer. Attached 118393.html shows it in ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C++ Operators

This quiz tests a student's knowledge about C++ operators.