Php 更改其他页面输入的值
让表单在页面中打开,谷歌地图在ColorBox中打开,从其他页面加载 我想在地图中移动拖动按钮时更改其他页面表单中的值 表单页面:form.phpPhp 更改其他页面输入的值,php,jquery,google-maps,google-maps-api-3,Php,Jquery,Google Maps,Google Maps Api 3,让表单在页面中打开,谷歌地图在ColorBox中打开,从其他页面加载 我想在地图中移动拖动按钮时更改其他页面表单中的值 表单页面:form.php <form action="ajax-trades/submit-edit.php" method="POST"> <div id="address"></div> <input type="hidden" name="target" id="target" valu
<form action="ajax-trades/submit-edit.php" method="POST">
<div id="address"></div>
<input type="hidden" name="target" id="target" value="<?php echo $row['gmap']; ?>">
<input type="submit" onclick="window.scrollTo(0, 200);" value="submit" class="button" />
</form>
尝试使用以下方法:
$("#address", window.top.document).html('<input type="hidden" name="map" value="' + position.toString() + '" />');
$(“#地址”,window.top.document).html(“”);
窗口。top表示您将在“根”页面上搜索#address元素。请定义“不工作”。您预计会发生什么情况?到底发生了什么?我希望像somthing一样打印from.php
$("#address").html('<input type="hidden" name="map" value="' + position.toString() + '" />');
$("#address", window.top.document).html('<input type="hidden" name="map" value="' + position.toString() + '" />');