Thanks FredSovenix,
I am only using postcodes of Australia but point taken.
Now to try acoders suggestion and see if I can get it to work.
Back soon!
User Profile
Collapse
-
-
Thanks Acoder,
I am not 100% on how to check if its an integer. The code below is as close as I have got but it is not working - what am I doing wrong?
...Code:<script language="Javascript"> function chk_val(obj) { var chk = /^\d+$/.test(obj.value); if (!chk) {Leave a comment:
-
Thanks karthickkuchanu r,
I understand the concept - I dont understand how to write it!
Do you have a sample I could look at?Leave a comment:
-
Has the user entered text in a numeric field
Hi Experts, my first post here! I hope you can help me.
I have a basic form which I want the user to enter either a number (postcode/zipcode) or text (suburb).
When they hit submit I want to check what has been entered and then send them to either a postcode/zip code page if it was a number entered or send them to a suburb page if it was text they entered.
Is this possible and if so how?
...
No activity results to display
Show More
Leave a comment: