我真的很震惊这里。我有一个表单,我想提交它并在 Jquery 的其他页面上获取值:
<form id="rentals_form" name="popup_form" action="rentals.php" method="POST">
<input alt="" style="display:none;" id="copy_id" name="copy_id" type="text">
</form>
<button
class="save_button"
value="copy_listing_button"
onclick="document.forms[$('#copy_listing option:selected').val()+'_form'].submit();"
style="font-size:11px; padding:0 3px 0 3px;">
Go
</button>
现在我想用jquery而不是php在rentals.php中获取copy_id值
$(document).ready(function()
{
// here I want to get copy_id value.please note this is jquery so i want to get in jquery
});