谁能告诉我为什么我的锚标签不起作用?他们只是加载外部页面,但不会将您带到页面下方的正确 div。
这是我的 .php 页面上的代码
</td><td class="shorter">
<input name="txt2nd" class="numbersOnly" type="number" id="txt2nd"></td>
<td class="shortest">
<a href="update.html#update_show" rel="external" id="update"><img class="update" alt="update price" src="images/update.png">
</a></td>
</tr>
然后应该在锚点 id 处加载一个外部页面。该页面上的代码如下所示:
<div class="text-bg">
<form method="post" data-ajax="false" id="update_show" action="php/input_shows.php">
<p><label for="name">Your name</label><input type="text" size="30" name="name" id="name" /></p>
<p><label for="price">Price of a show</label><input type="number" step="any" min="0" name="price" id="price" cols="5" /></p>
<p><input type="submit" value="Update" name="commit" id="message_submit"/> or
<a rel="external" href="budget.html">Cancel</a></p>
</form>
我不确定我哪里出错了,或者这是否是由于我不知道的与 jQuery mobile 的冲突引起的。我希望你们会注意到一些非常简单的事情。