Wednesday, 28 August 2013

How to split the integer number using jquery?

How to split the integer number using jquery?

I want to split the integer number something like this 35 into 30 and 5.
In the first case if it is 35, after split 30 and 5, 5<=5 so the result
should be 35. In the second case if it is 37, after split 30 and 7, 7>5 so
the result should be 40.
Can anyone help on this? i wish to do this in j-query.

No comments:

Post a Comment