Purchase Solution

JavaScript: Validate a Text Field

Not what you're looking for?

Ask Custom Question

Write a JavaScript function, included in a XHTML document, to validate a text field on a form which is to contain an integer (e.g. 2, 4567, 87612) without using any built functions like IsNaN an so fourth. If the text field contains a valid number then the JavaScript function can return "true", otherwise it returns "false" as well as displaying a popup error message.

Purchase this Solution

Solution Summary

This solution provides guidelines on how to write a JavaScript function to validate a text field on a form containing an integer.

Purchase this Solution


Free BrainMass Quizzes
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# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

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.

C++ Operators

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