Note: This works fine in desktop / laptop browsers and even Opera Mobile on my Samsung Galaxy S2 but as I'm working towards this being an app to run on any phone I wanted to be complete in my error checking.

edit:
In case it's my select thats the problem (as suggested below) what's wrong with it here?
Is it because it is converted to a string at the point I return it?

You said "the value shown" in the select box. Does that mean you see "NaN" as an option for your select box? That could mean the problem is with your option generation code.
–
InvisibleBaconSep 2 '11 at 13:46

Yes. Where it should be displaying a number it shows blank and the span where I show the value shows NaN. Good thinking though. I'll check the loop where I am building the options.
–
Duck in CustardSep 2 '11 at 13:50

@InvisibleBacon OK Here's my select building loop. What have I got wrong here or is it just the fact that I'm returning it that it then becomes a string not a value?
–
Duck in CustardSep 2 '11 at 14:16

You said "the span where I show the value shows NaN". Is there a span that you are copying the selected value to at some point? Can you show that code?
–
InvisibleBaconSep 2 '11 at 14:30

Added the code as an edit to the original post
–
Duck in CustardSep 2 '11 at 14:30

Thanks Aaron. Have taken a couple of days off from this but after taking another look I think your example may have put me onto something. I have a question though. Your example is great for when I know the options before hand. But I am building the select drop-down each time so the index of each option will potentially be different each time. How would I check the contents of each option first to then know which option index to set as selected? (note: this is probably a stupid question with a very obvious answer but I am now too tired to know any better! Sorry.)
–
Duck in CustardSep 5 '11 at 13:11