<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
Stringpath=request.getContextPath();
StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<basehref="<%=basePath%>">
<title>MyJSP'index.jsp'startingpage</title>
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache">
<metahttp-equiv="expires"content="0">
<metahttp-equiv="keywords"content="keyword1,keyword2,keyword3">
<metahttp-equiv="description"content="Thisismypage">
<linkrel="stylesheet"href="jquerymobile/jquery.mobile-1.0b1.min.css"/>
<scriptsrc="jquerymobile/jquery-1.6.1.js"></script>
<scriptsrc="jquerymobile/jquery.mobile-1.0b1.min.js"></script>
</head>
<body>
<divdata-role="page">
<divdata-role="header">
---
</div>
<divdata-role="content">
<divdata-role="fieldcontain">
<labelfor="name">TextInput:</label>
<inputtype="text"name="name"id="name"value=""/>
</div>
<ahref="index.html"data-role="button"data-icon="delete">Delete</a>
</div>
<divdata-role="button">
<inputtype="text"name="name"id="name2"value=""/>
<aid="cha"data-role="button"data-icon="arrow-d"data-iconpos="notext"></a>
<selectname="selectchoice"id="selectchoice"data-native-menu="false">
<optionvalue="standard">Standard:7day</option>
<optionvalue="rush">Rush:3days</option>
<optionvalue="express">Express:nextday</option>
<optionvalue="overnight">Overnight</option>
</select>
</div>
<divdata-role="footer">...</div>
</div>
<scripttype="text/javascript">
setTimeout(function(){
$("#cha").click(function(){
$(".ui-select").find("a").trigger("click");
varposition=$("#cha").offset();
$(".ui-selectmenu").css("top",""+position.top);
$(".ui-selectmenu").css("left",""+position.left-($("#name").width()/2));
$(".ui-selectmenu").find("ul").find("li").find("div").find("div").append("xxx");
$(".ui-selectmenu").click(function(){
$("#name2").val($("#selectchoice").val());
});
});
$(".ui-select").hide();
},100);
</script>
</body>
</html>