jquery mobile flipswitch active by default -


i'm using query mobile 1.4.0 , i'm trying make flip switch active default i'm not sure how approach it. i've tried adding selected="selected" <input> doesn't seem make difference. have ideas?

      <form>       <div class="prof-wrap">         <div class="prof-left">           <div class="prof-txt-wrap">             <div class="text-off">off title</div>             <div class="text-off2">off type</div>           </div>         </div>         <!-- end prof-left -->         <div class="prof-mid">           <div class="prof-switch">             <input type="checkbox" data-role="flipswitch" name="flip-checkbox-4" id="flip-checkbox-4" data-wrapper-class="custom-size-flipswitch" selected="selected">           </div>           <!--end prof-mid -->          </div>         <!-- end prof-switch -->         <div class="prof-right">           <div class="prof-txt-wrap2">             <div class="text-active">on title</div>             <div class="text-active2">on type</div>           </div>         </div>         <!-- end prof-right -->        </div>       <!-- end prof-wrap -->       </form> 

according documentation use checked=""attribute:

<form>     <label for="flip-checkbox-4">flip toggle switch checkbox:</label>     <input type="checkbox" data-role="flipswitch" name="flip-checkbox-4" id="flip-checkbox-4" checked=""> </form> 

Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -