to check if something is int or float, just do:

if (Math.floor(n).toString() == n.toString()) {
    // yay! we have an int
} else {
    // it's a float or something else.
}

On Fri, Sep 19, 2008 at 3:00 AM, Ming Cho <[EMAIL PROTECTED]> wrote:

>
> not sure if this is built in or not, but all i need to do is check if
> an input text value is a Int, Float and contain less than x amount of
> characters. I read the API and not sure if it's already built in or
> i'll have to add it.
>
> If i have to add it myself where is a good tutorial?
>
> >
>


-- 
E. Myller ( www.emyller.net )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to