0
jQuery(".w").click(function() {
var id =jQuery(this).attr('id');
var location="http://localhost:8888/Admin/description/description.php";
$.ajax({
url: location,
type:'POST',
data:{data:id}
});
});
我想重定向到的位置與數據一起,在我的情況下不能使用形式如何發送(AJAX)POST數據到網址並重定向到具有相同數據的網址?
您能否解釋*爲什麼*您無法使用表格? – Phil
因爲我點擊使用圖像,通過使用jquery我正在採取的屬性和鏈接到PHP的網址 – Y07
您仍然可以使用圖像點擊提交表單。請參閱[''](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/image) – Phil