Skip to content

Instantly share code, notes, and snippets.

@Hafthor
Created October 18, 2011 18:40
Show Gist options
  • Save Hafthor/1296269 to your computer and use it in GitHub Desktop.
Save Hafthor/1296269 to your computer and use it in GitHub Desktop.
tapping actual checkbox on checkboxes with multiline labels on Android submits unchecked
<%@ Page Language="VB" %>
<!DOCTYPE html>
<html>
<head><title></title>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="http://jquerymobile.com//test/css/themes/default/" />
<script src="http://jquerymobile.com//test/js/jquery.js"></script>
<script src="http://jquerymobile.com//test/js/"></script>
</head>
<body> <div data-role="page">
<div data-role="content">
<form method="POST">
<h1>jquerymobile bug demo</h1>
<p>on android, tap the actual checkmark and submit</p>
<p>Request.Form("c1")="<%=Request.Form("c1")%>"</p>
<p>Request.Form("c2")="<%=Request.Form("c2")%>"</p>
<div data-role="fieldcontain"><fieldset data-role="controlgroup"><input type="checkbox" name="c1" id="c1" /><label for="c1">c1: single line works</label></fieldset></div>
<div data-role="fieldcontain"><fieldset data-role="controlgroup"><input type="checkbox" name="c2" id="c2" /><label for="c2">c2: note that tapping the checkmark on this multiline checkbox doesn't work.</label></fieldset></div>
<input type="submit" name="submit" value="submit"/>
</form>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment