Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to test for bad numbers using JavaScript?
How to test for bad numbers using JavaScript?
✍: Guest
The global method, "isNaN()" can tell if a number has gone bad.
var temperature = parseFloat(myTemperatureWidget.value);
if(!isNaN(temperature)) {
alert("Please enter a valid temperature.");
}
2011-06-28, 3758👍, 0💬
Popular Posts:
How to measure functional software requirement specification (SRS) documents? Well, we need to defin...
How Large Can a Single Cookie Be? - PHP Script Tips - Understanding and Managing Cookies How large c...
What are the different storage classes in C? C has three types of storage: automatic, static and all...
How To Add Column Headers to a Table? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells I...
Managed Code and Unmanaged Code related ASP.NET - How do you hide Public .NET Classes and other publ...