Within my jquery mobile app, I have a dynamically generated listview and what I want to do is when the user clicks a list item, I want to get a value from a hidden field within
You could use URL query tags, or save the data in a cookie or in HTML5 local/session storage.
To get information from a list, here is an example
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
var a = [],
list = document.getElementsByTagName("li");
Array.prototype.forEach.call(list, function(entry) {
a.push(entry.textContent);
});
console.log(a);
Available on jsfiddle