标记内的jQuery Mobiletype="submit"
或type="button"
(UI)<form>
不起作用。相同的东西被替换type="text"
或除此之外的任何东西都可以完美地工作type="button"
。type="submit"
代码是
<head>
<script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" charset="utf-8" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/twitter.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.3.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery.mobile-1.3.1.min.css" />
</head>
<body>
<div data-role="page">
<div data-role="header"><h4>Pay</h4></div>
<div data-role="content">
<h4>You are about to Pay Nrs <span id="paymentAmount"></span> for <span id="trees"></span> Trees.</h4>
<form id="paymentForm">
<div data-role="fieldcontain">
<input value="100" name="amt" type="hidden">
</div>
<div>
<input value="Pay" type="button" name="payBtn"/>
</div>
</form>
</div>
</div>