Really need some help using checkboxradio
Hi i really need some here, im struggling for our with something i suppose is really simple
i have a fieldset in which i have a checkbox list.
im listening to the tap event on the label of the checkbox.
but nothing really happens when im trying to refresh it
here is the HTML
- <form id="frmMenuSelect">
- <div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
- <fieldset data-role="controlgroup" ....>
- <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>
and the JS that is not working
- <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>
- <script>
- $('[data-role=page]').live('pageshow', function (event) {
- $('#frmMenuSelect label').tap(function (event) {
-
- $("mi_1").attr("checked", true).checkboxradio("refresh");
- return;
-