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
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="MainMenu" %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>Page Title</title>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" />
- <script src="http://code.jquery.com/jquery-1.5.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
-
- <body>
- <div data-role="page" id="menu" data-theme="b">
- <script>
- $('[data-role=page]').live('pageshow', function (event) {
- $('#frmMenuSelect label').tap(function (event) {
- $("mi_4").attr("checked", true).checkboxradio("refresh");
- alert('in function'); // => this alert is firing, no errors in debugger
- });
- });
- </script>
- <link rel="Stylesheet" href="mainmenustyles.css" />
- <div data-role="header" data-theme="a" style="height: 40px">
- <h3>
- Welcome</h3>
- <a href="#" data-theme="a" data-icon="arrow-r" onclick="run()" class="ui-btn-right">Main Menu</a>
- </div>
- <!-- /header -->
- <div data-role="content">
- <form id="frmMenuSelect">
- <div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
- <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">
-
- <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>
- <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>
- <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>
- <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>
-
- </div></fieldset>
- </div>
- </form>
- </div>
- <!-- /content -->
- <div data-role="footer" data-theme="a">
-
- </div>
- <!-- /footer -->
- </div>
- </body>
- </html>