i found a worked example at this site http://jsfiddle.net/VNXb2/26/ , but when i put it at Aptana studio it doesn’t work, i guess that i didn’t put the function in the proper place, so where to put these function relative to the HTML in the first section,thanks.
i found a worked example at this site http://jsfiddle.net/VNXb2/26/ , but when i put
Share
If you have javascript in a jQuery Mobile page that is loaded through ajax, you will need to put the
<script>tags inside that pages<div>. That means inside of the div that is markeddata-role="page".Example:
some other page loaded asynchronously
If you are just switching between jQM pages that are actually in the same document, you should be ok to put your function anywhere on that document, but probably preferably in the
<head>tags.