by default if you use substr() to pull characters from a string, it returns it to you as a string.

therefore if you to a compare of "19" and "4" as strings, the "4" would be greater.

Use val() and it uses the numeric value.

Les (and others here) have no problem in helping here. He just wants specifics.

What you asked for in the first post, is not what you asked from in the later ones.
_________________________
How to ask questions the smart way <-----------> Before you ask