How to define long methods

How to define long methods

I have this fiddle http://jsfiddle.net/kQ8aS/

This is the jquery code

  1. $(document).ready(function (){
  2. $('tr:first-child').next().addClass("current");
  3. $("#next").click(function(){
  4. $("table").find('.current').removeClass("current");
  5. });
  6. });

In my code,i am giving the second child a pink highlight and pushing the highlight to the next element when next is clicked.

I am doing that by removing the current class from the previous element and adding a current class to the next class.

How do i express that thought in one statement

so far i have

  1. $("table").find('.current').removeClass("current");