Open popup and fill in data
Description
The following code shows how to open popup and fill in data.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
</head><!--from ww w.j ava2s .co m-->
<body>
<a href="#popupBasic" data-role="button" data-rel="popup">Open </a>
<div data-role="popup" id="popupBasic" data-theme="c"
class="ui-corner-all">
<form>
<div style="padding: 10px 20px;">
<h3>Please enter reason</h3>
<label for="un" class="ui-hidden-accessible">Reason:</label>
<textarea cols="40" rows="8" name="textarea" id="un" data-theme="c"
placeholder="Reason"></textarea>
<button type="submit" data-theme="c">Ok.</button>
</div>
</form>
</div>
</body>
</html>