Forum Moderators: open

Message Too Old, No Replies

Dont want decimal in number

         

YuviG

5:17 am on May 29, 2007 (gmt 0)

10+ Year Member



Hi Friends

I have a problem with javascript like i have a textfield and i want when user enters numeric value with decimals (23.4) it should show an alert "Plz enter valid number!" ...
i.e., Only numbers 234 is allowd but not 23.4

any help.?

thanks

vincevincevince

4:22 pm on Jun 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It can never be claimed that you only get half an answer at WebmasterWorld

Fotiman

4:32 pm on Jun 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oh yeah? How 'bout this:
100 + 200 = 150! ;)

Dabrowski

4:38 pm on Jun 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I once answered a question with this:

Sometimes you need to hit a nail in with a wrench.


Yes, but are you sure you should be using a nail?

I once hit a nail with a cucumber. It made a mess. This is a mess.

The last line is mine. :D

This 33 message thread spans 2 pages: 33