0
我有一個窗體,在文檔加載時,根據另一頁上先前選定的值加載其他字段。這全部由JQuery完成。而不是現在公佈我所有的代碼在這裏,這裏是我做的一個基本的樣機...使用JQuery訪問AJAX添加的輸入
<form>
<input>
<input>
<div id="loadedcontent">
<AJAX loaded inputs on document load>
</div>
<input submit button>
</form>
<script that posts to a PHP file and retrieves the form inputs. They all have ID's. The script also has a form submit listener to process it all.>
的問題是在聽者的形式提交,我無法訪問ID先前的加載AJAX元素。有什麼我失蹤?
讓我們看看你的代碼試圖訪問新添加的元素。 – tymeJV