이jquery addClass가 tablecell에서 작동하지 않습니다.
일부 도움이 필요합니다.이
if(perc>0){
alert('change backgroundcolor and textcolor');
$('#stocktable tr td:last').addClass('stockhigher');
하지만 테이블 셀
작동하지 않습니다. 또한 try'd 선택기를 설정하려면 이런 식으로
$('#stocktable tr td:eq(2)).addClass...
$('#stocktable tr td.percentage').addClass...
아무 것도!
같은 테이블 자체 또는 tablerow에서 작동$('#stocktable tr')
여기에 뭔가가 빠졌습니까?
감사합니다. Richard
HTML 마크 업을 제공 할 수 있습니까? – rahul