我试图改变内部<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');
});
你知道这样做的方法吗?