我試圖改變內部<span></span>
改變類的<i>內部的<span>
整個事情類的<i class="icon-ok">
的是這樣的:
<span class="enable"> Some Text
<i class="icon-ok"> //This is all there is in here. Just one <i> and nothing else
</span>
JQuery的:
$('.enable').live('click', function() {
var self = $(this);
self./ how do I tell it to look for the i/.removeClass('icon-ok').addClass('icon-remove');
});
你知道這樣做的方法嗎?