Link to home
Start Free TrialLog in
Avatar of bamapie
bamapie

asked on

jquery mobile checkbox

My jquery mobile checkbox:

<input type="checkbox" id="chkboxRememberMe" /><label for="chkboxRememberMe">Keep me logged in</label>

Open in new window


is disabled by default.  That is, when it's rendered, it already contains the class "ui-checkbox-off":

<div class="RememberMe">
      <div class="ui-checkbox">
	<label class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-left ui-checkbox-off" for="chkboxRememberMe">Keep me logged in</label>
	<input id="chkboxRememberMe" type="checkbox">
	</div>
</div>

Open in new window


Why is this?  It's unusable.  How do I make it enabled by default?
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sajayj2009
sajayj2009

Did you try checkboxon? if not;

<div class="RememberMe">
      <div class="ui-checkbox">
	<label class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-left ui-checkbox-on" for="chkboxRememberMe">Keep me logged in</label>
	<input id="chkboxRememberMe" type="checkbox">
	</div>
</div>

Open in new window


Else it might be issue with jquery/css...
Avatar of bamapie

ASKER

Something was off.  I ended up just getting new themes from the themeroller for JQM, and everything just righted itself.

Per Rainer, somewhere, I just had some kind of mod that was jacking with this.