How to change html class after ajax successful response?
<p>I want to toggle the voting arrow class, the same way as stackoverflow's voting arrow. For a logged in user, if already voted up, the html is:</p>

<pre><code>&lt;a href="#vote" id="vote-up-%1$d" class="vote vote-up-on"&gt;&lt;/a&gt;
&lt;a href="#vote" id="vote-down-%1$d" class="vote vote-down-off"&gt;&lt;/a&gt;
</code></pre>

<p>After user clicked down arrow,  if response success, How to change "vote-up-on" to "vote-up-off", and change "vote-down-off" to "vote-down-one"?</p>
