Hello, I have an iPhone problem with val(), any help would be great.
The val() code in the title works fine on a desktop/laptop to pull the text (by name) from a textarea.... but in Safari on iPhone I get "no value returned" alert?
I'm not sure why this is not supported on the iOS system? I've also tried 'text' and 'html' in the place of val.
The text to be selected by val() in the textarea is created by a PHP POST from a form on another page. The val() returned is then included in a js page in an object literal property like so:
The following code works fine on a desktop/laptop for pulling the text from a textarea in a form (into a js page) but in Safari on iPhone I get "no value returned"?
I'm not sure if this is supported on the iOS system? Do I have to include a script link to a jquery mobile library for it to work on iPhones? Many Thanks