我正在使用jQuery将ajax内容加载到页面上。但是,尝试使用jQuery的.remove()函数似乎无法删除动态加载的元素。
我的示例函数:
function deletePerson(personID){
if (confirm("Are you sure you want to permanently delete this person?\nYou cannot undo this action.")){
$.post("ajax/personsDelete.php", { personNo: personID },
如何索引到特定jquery object.Like的第n个子级.
var $parent = $('#slect');
var $index = 4;
var $active = $parent.children().nth-child($index);
我试过了但不起作用。如何使用动态变量从Jquery对象中索引。