Add select control to header
Description
The following code shows how to add select control to header.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<style type='text/css'>
.header {<!-- ww w . j a va 2 s.c o m-->
padding: .5em;
}
.title {
font-weight: bold;
font-size: 16px;
padding: .5em;
}
.share-it-wrapper {
margin: -2.4em 0 0 3em;
}
</style>
</head>
<body>
<header data-role="header" class="header">
<span class="title">title</span>
<div class="share-it-wrapper">
<select name="select-choice-share" id="select-choice-share"
class="shareitbutton" data-icon="myapp-shareicon"
data-iconpos="notext">
<option value="facebook">Share on Facebook</option>
<option value="twitter">Tweet</option>
<option value="email">Email</option>
</select>
</div>
<a href="#creditspage" data-icon="info" data-iconpos="notext"
class="ui-btn-right">Credits</a>
</header>
</body>
</html>