drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

iCheck change text #359

Closed brestows closed 7 years ago

brestows commented 7 years ago

I have div:

<div class="checkbox">
       <label id='lblCallWait' class="" for="square-checkbox-2" style="padding-left:0px">
       <input id="chkCallWait" name="chkCallWait" type="checkbox">
        ValueTemp </label>
</div>

How to in js change text "ValueTemp" on "Test" ?

brestows commented 7 years ago

change to:

 <div class="checkbox">
     <input id="chkCallWait" name="chkCallWait" type="checkbox">
     <label id='lblCallWait' class="" for="chkCallWait">ValueTemp</label>
</div>

in js : $('#lblCallWait').html = 'Test';