Anyone know how do I use javascript to limit the numeric amount enetered in a text box less than 1000?

Anyone know how do I use javascript to limit the numeric amount enetered in a text box less than 1000?

check is it number or not with isNaN and then convert to int with parseInt. now you can compare it with any number

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.