checkboxradio("refresh") not refreshing

checkboxradio("refresh") not refreshing

Hi,

Im kinda reposting this..

this is a complete code of a page in which a checkbox refresh function does not work
ill be glad for any assitance, this is a very important feature in our project

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="MainMenu" %>

  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.     <meta charset="utf-8" />
  6.     <title>Page Title</title>
  7.     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" />
  8.     <script src="http://code.jquery.com/jquery-1.5.min.js"></script>
  9.     <script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
  10.     
  11.     <body>
  12.         <div data-role="page" id="menu" data-theme="b">
  13.         <script>



  14.             $('[data-role=page]').live('pageshow', function (event) {
  15.                 $('#frmMenuSelect label').tap(function (event) {
  16.                     $("mi_4").attr("checked", true).checkboxradio("refresh");
  17.                     alert('in function'); // => this alert is firing, no errors in debugger
  18.                 });
  19.             });
  20.         </script>
  21.             <link rel="Stylesheet" href="mainmenustyles.css" />
  22.             <div data-role="header" data-theme="a" style="height: 40px">
  23.                 <h3>
  24.                     Welcome</h3>
  25.                 <a href="#" data-theme="a" data-icon="arrow-r" onclick="run()" class="ui-btn-right">Main Menu</a>
  26.             </div>
  27.             <!-- /header -->
  28.             <div data-role="content">
  29.             <form id="frmMenuSelect">
  30.               <div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
  31. <fieldset data-role="controlgroup" class="ui-corner-all ui-controlgroup ui-controlgroup-vertical"><div role="heading" class="ui-controlgroup-label">Choose as many snacks as you'd like:</div><div class="ui-controlgroup-controls">
  32. <div class="ui-checkbox"><input type="checkbox" name="mi_1" id="mi_1" class="custom"><label for="mi_1"  data-theme="c" class="ui-btn ui-btn-icon-left ui-corner-top ui-btn-up-c"><span class="ui-btn-inner ui-corner-top"><span class="ui-btn-text">Services</span></span></label></div>
  33. <div class="ui-checkbox"><input type="checkbox" name="mi_2" id="mi_2" class="custom"><label for="mi_2" data-theme="c" class="ui-btn ui-btn-icon-left ui-btn-up-c"><span class="ui-btn-inner"><span class="ui-btn-text">Contracts</span></span></label></div>
  34. <div class="ui-checkbox"><input type="checkbox" name="mi_3" id="mi_3" class="custom"><label for="mi_3" data-theme="c" class="ui-btn ui-btn-icon-left ui-btn-up-c"><span class="ui-btn-inner"><span class="ui-btn-text">Sales</span></span></label></div>
  35. <div class="ui-checkbox"><input type="checkbox" name="mi_4" id="mi_4" class="custom"><label for="mi_4" data-theme="c" class="ui-btn ui-btn-icon-left ui-corner-bottom ui-controlgroup-last ui-btn-up-c"><span class="ui-btn-inner ui-corner-bottom ui-controlgroup-last"><span class="ui-btn-text">Sun Chips</span></span></label></div>
  36.                    
  37.    </div></fieldset>
  38. </div>
  39.             </form>
  40.             </div>
  41.             <!-- /content -->
  42.             <div data-role="footer" data-theme="a">
  43.                
  44.             </div>
  45.             <!-- /footer -->
  46.         </div>
  47.     </body>
  48. </html>