I have this code using jQuery Mobile:
<div role="main" class="ui-content"> <form action="/" method="post"> <fieldset data-role="controlgroup"> <input type="checkbox" name="checkbox-1a" id="checkbox-1a" checked=""> <label for="checkbox-1a">Cheetos</label> <input type="checkbox" name="checkbox-2a" id="checkbox-2a"> <label for="checkbox-2a">Doritos</label> <input type="checkbox" name="checkbox-3a" id="checkbox-3a"> <label for="checkbox-3a">Fritos</label> <input type="checkbox" name="checkbox-4a" id="checkbox-4a"> <label for="checkbox-4a">Sun Chips</label> </fieldset> </form> </div>
The problem is that when the page loads, the codes look like this:
<div class="ui-controlgroup-controls "> <div class="ui-checkbox">
I missed all the code, the problem is
which should not be there. Any idea on how to fix it?
jquery-mobile
user3787626
source share