存在的href我有一個HTML這個樣子removeClass不工作,如果在錨
<tr>
<td style="padding:0px;">
<a class="list-group-item active change_class" href="<?php echo base_url()."index.php/tester/projectwise_issue_list_display/".$row->project_id;?>"><?php echo $row->project_name;?></a>
</td>
<td style="padding:0px;">
<a class="list-group-item active change_class" href="<?php echo base_url()."index.php/tester/projectwise_issue_list_display/".$row->project_id;?>"><?php echo $row->project_name;?></a>
</td>
</tr>
當我點擊它不刪除我的課的錨。
jQuery是低於....
jQuery('td').click(function() {
jQuery(this).find('a').removeClass('change_class');
});
如果我刪除的href從錨它的工作很好。我需要的href
你可以顯示輸出代碼 –