Created
June 6, 2012 18:56
-
-
Save jnrbsn/2883900 to your computer and use it in GitHub Desktop.
Demonstration of jQuery Mobile issue for Stack Overflow question: http://stackoverflow.com/questions/10920495
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery Mobile Test</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css"> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> | |
<script> | |
$(function () { | |
$('#mySelect').bind('change', function () { | |
// The actual logic for building the URL is more complicated, obviously. | |
// This is just an example. | |
location.href = 'jquery-mobile-test.html?param=' + this.value; | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div data-role="page" class="type-home"> | |
<div data-role="content"> | |
<div data-role="fieldcontain"> | |
<select data-native-menu="false" name="param" id="mySelect"> | |
<option>Select an Option...</option> | |
<option value="1">One</option> | |
<option value="2">Two</option> | |
<option value="3">Three</option> | |
<option value="4">Four</option> | |
<option value="5">Five</option> | |
<option value="6">Six</option> | |
<option value="7">Seven</option> | |
<option value="8">Eight</option> | |
<option value="9">Nine</option> | |
<option value="10">Ten</option> | |
</select> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment