I make a simple radio group using JQuery Mobile in that way:
<fieldset id="current_status" data-role="controlgroup" data-type="horizontal"> {% for state in states %} <input type="radio" name="state-choice" id="state-{{ state.id }}" value="{{ state.id }}" data-code="{{ state.code }}" {% if state == currentState %}checked="checked"{% endif %} /> <label for="state-{{ state.id }}">{{ state.description }}</label> {% endfor %} </fieldset> I need to validate changing, so I tried to use everything like:
$(document).ready(function() { $('#current_status label').click(function(event) { event.stopPropagation(); event.preventDefault(); changeStatus($(this)); return false; }); $('#current_status input').click(function(event){ event.stopPropagation(); event.preventDefault(); changeStatus($(this)); return false; }); . . . . . . . . . . . . . . . . . . . }); In my computer browser it works. But in mobile browser changing isn't prevented. What could be a problem here?