I have a list that looks like this:
<ul id="colors">
<li class="variant on">red</li>
<li class="variant off">blue</li>
<li class="variant off">white</li>
<li class="variant off">black</li>
</ul>
I want get an event when an item changes from off to on class changes, e.g. if the following happens:
<li class="variant off">red</li>
<li class="variant on">blue</li>
For that I tried to use livequery but I don't manage to get the events or set it right.
$('#colors li.on').livequery(function(){
console.log(this.text())
});