vendredi 20 octobre 2017

jquerymobile - checkbox on list item with collapse - avoid the expand/contract action

I did a mix of listview item with collapsible format and a checkbox to select/unselect the item but when I click on checkbox the action of expand/contract the container is fired.

Any idea to avoid it (or contract again the item) ?

enter image description here

The markup...

    <li id="item"  data-role="collapsible" data-iconpos="right" data-inset="false" data-mini="true">
    <h3>
        <div class="checkBoxLeft">
            <input type="checkbox" name="check" id="check" class="hidden-checkbox check-item" value="1" />
        </div>
        <span class="checkBoxLeftTitle">18/10 - Quarta</span>
    </h3>




Aucun commentaire:

Enregistrer un commentaire