我在一個頁面中創建了兩個表單,每個表單都有自己的按鈕。當我點擊第一個表單按鈕時,應該同時刷新兩個表單。如何刷新同一頁上的一個按鈕中的兩個表格
我的第一種形式是這個樣子
<form id="search_form" method="post" action="do_searchID.php">
<label>Enter Employee Number</label>
<input type="text" name="emp_id" id="emp_id">
<button type="submit" name="search">Search</button>
</form>
我的第二種形式是像這樣在同一頁面
<form method="post" action="do_searchID.php">
<label>Full Name</label>
<input type="text" id="full_name" value="">
<button type="submit" name="submit_update">Update Now </button>
</form>
從這個怎麼能寫的jQuery做上述任務。請幫助我我不知道做這個任務我必須從數據庫檢索數據。
你需要使用'$ .ajax()'http://api.jquery.com/jquery.ajax/ –
你想要提交兩種形式或休息(清除)兩種形式在一個按鈕上單擊? – coolguy
@coolguy,同樣的問題...... !! – Suyog