У меня есть очень простая страница с двумя разделами, которые помечены знаком и связаны с помощью ссылки в формате Jquery Mobile на той же странице (частота обновления), и она не работает согласованно.

Хотя я использую это в приложении PhoneGap, та же проблема возникает, когда я пытаюсь загрузить страницу локально в Chrome.

{amp}lt;head{amp}gt;
    {amp}lt;title{amp}gt;TPS/TFS CAD Page{amp}lt;/title{amp}gt;
{amp}lt;META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"{amp}gt;

    {amp}lt;meta name="viewport" content="width=device-width, initial-scale=1"{amp}gt;
{amp}lt;link rel="stylesheet" href="css/tfscad.mobile.css" /{amp}gt;
{amp}lt;link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css"{amp}gt;
{amp}lt;link rel="stylesheet" href="css/font-awesome.min.css"{amp}gt;
{amp}lt;script src="js/jquery-1.11.1.min.js"{amp}gt;{amp}lt;/script{amp}gt;
{amp}lt;script src="js/jquery.mobile-1.4.5.min.js"{amp}gt;{amp}lt;/script{amp}gt;
{amp}lt;script src="js/js.cookie.js"{amp}gt;{amp}lt;/script{amp}gt; 
{amp}lt;script src="cordova.js"{amp}gt;{amp}lt;/script{amp}gt;

{amp}lt;script type='text/javascript'{amp}gt;

function save_val(va) {
        localStorage.setItem('refreshrate', va );
       var refreshrate=localStorage.getItem('refreshrate');

   alert('The refreshrate is set to '   refreshrate);     
      }


{amp}lt;/script{amp}gt;   


{amp}lt;/head{amp}gt;


{amp}lt;body{amp}gt;

{amp}lt;div id="options" data-role="page"{amp}gt;

{amp}lt;!-- Start of first page --{amp}gt;

    {amp}lt;div data-role="header"{amp}gt;
{amp}lt;a href="" data-rel="back" class="ui-btn ui-carat-l ui-btn-icon-left ui-shadow ui-corner-all ui-btn-icon-notext"{amp}gt;Back{amp}lt;/a{amp}gt;  

        {amp}lt;h1{amp}gt;Options{amp}lt;/h1{amp}gt;
    {amp}lt;/div{amp}gt;{amp}lt;!-- /header --{amp}gt;

    {amp}lt;div role="main" class="ui-content"{amp}gt;
{amp}lt;a href="alertslist.html" data-ajax="false" class="ui-btn ui-icon-carat-r ui-btn-icon-right ui-state-disabled"{amp}gt;Alerts{amp}lt;/a{amp}gt;
{amp}lt;a href="filterslist.html" data-ajax="false" class="ui-btn ui-icon-carat-r ui-btn-icon-right ui-state-disabled"{amp}gt;Filters{amp}lt;/a{amp}gt;
{amp}lt;a href="#refopt" class="ui-btn ui-icon-carat-r ui-btn-icon-right" {amp}gt;Refresh Rate{amp}lt;/a{amp}gt;

    {amp}lt;/div{amp}gt;{amp}lt;!-- /content --{amp}gt;

    {amp}lt;div data-role="footer"{amp}gt;
        {amp}lt;h4{amp}gt;{amp}lt;/h4{amp}gt;
    {amp}lt;/div{amp}gt;{amp}lt;!-- /footer --{amp}gt;
{amp}lt;/div{amp}gt;{amp}lt;!-- /page --{amp}gt;

{amp}lt;!-- Start of second page --{amp}gt;
{amp}lt;div data-role="page" id="refopt"{amp}gt;

    {amp}lt;div data-role="header"{amp}gt;
{amp}lt;a href="" data-rel="back" class="ui-btn ui-carat-l ui-btn-icon-left ui-shadow ui-corner-all ui-btn-icon-notext"{amp}gt;Back{amp}lt;/a{amp}gt;  
        {amp}lt;h1{amp}gt;Refresh Rate{amp}lt;/h1{amp}gt;
    {amp}lt;/div{amp}gt;{amp}lt;!-- /header --{amp}gt;

    {amp}lt;div role="main" class="ui-content"{amp}gt;
            {amp}lt;fieldset data-role="controlgroup" data-iconpos="right"{amp}gt;
                {amp}lt;legend{amp}gt;The frequency that the application refreshes the dispatched events. 
                    Increasing this may reduce data usage, but will slow down how quickly you are notified of a new event{amp}lt;/legend{amp}gt;
                {amp}lt;input type="radio" name="refreshtime" id="10" value="10000" checked="checked" onclick="save_val('10000')"{amp}gt;
                {amp}lt;label for="10"{amp}gt;10 Seconds (Default){amp}lt;/label{amp}gt;
                {amp}lt;input type="radio" name="refreshtime" id="20" value="20000" onclick="save_val('20000')"{amp}gt;
                {amp}lt;label for="20"{amp}gt;20 Seconds{amp}lt;/label{amp}gt;
                {amp}lt;input type="radio" name="refreshtime" id="30" value="30000" onclick="save_val('30000')"{amp}gt;
                {amp}lt;label for="30"{amp}gt;30 Seconds{amp}lt;/label{amp}gt;
                {amp}lt;input type="radio" name="refreshtime" id="60" value="60000" onclick="save_val('60000')"{amp}gt;
                {amp}lt;label for="60"{amp}gt;1 Minute{amp}lt;/label{amp}gt;
                {amp}lt;input type="radio" name="refreshtime" id="120" value="120000" onclick="save_val('120000')"{amp}gt;
                {amp}lt;label for="120"{amp}gt;2 Minutes{amp}lt;/label{amp}gt;
                {amp}lt;/fieldset{amp}gt;
{amp}lt;/div{amp}gt;{amp}lt;!-- /content --{amp}gt;

    {amp}lt;div data-role="footer"{amp}gt;

        {amp}lt;h4{amp}gt;{amp}lt;/h4{amp}gt;
    {amp}lt;/div{amp}gt;{amp}lt;!-- /footer --{amp}gt;
{amp}lt;/div{amp}gt;

{amp}lt;!-- /page --{amp}gt;
{amp}lt;/body{amp}gt;
{amp}lt;/html{amp}gt;