jQuery를 사용하여 Ajax로드 후 클래스를 제거하는 방법은 무엇입니까? 나는jQuery를 사용하여 Ajax로드 후 클래스를 제거하는 방법은 무엇입니까?
$("#ul_list li").removeClass("highLight"); // this is not working, still see the list background high light color.
다음 :
우선, 내가 ul_list
$("#ul_list").load("testListResults");
다음의 UL ID로 만 나열 정보가 포함 된 HTML 파일을로드, 나는 모든 하이라이트 클래스 파일을 제거하려고 첫 번째 목록의 텍스트 정보를 가져 오십시오.
$("#ul_list li:first").text(); // this is not working either, showing empty.
감사합니다. –