highlighting a table row

highlighting a table row

I've got a select box on my website.. with one of the options being 'delete'. This 'delete' should highlight a certain row within a table, and redirect the user to an other page.

I've got the coding below, but it doesn't highlight the table row at all. What am I doing wrong here?
  1.   <script language="javascript">
  2.   $(document).ready(function() {
  3.    
  4.    $('select').change(function() {
  5.    
  6.    if ($(this).val()=='delete'){
  7.    $.ajax({
  8. var parent = $(this).closest('tr');
  9. parent.animate({'backgroundColor':'#00B2EE'},300);
  10. parent.fadeOut(300,function() {
  11. parent.remove();
  12. window.location= ("http://www.test.com"); 
  13. });
  14. });
  15.   
  16.    }

  17. });
  18.   
  19.   });
  20.   </script>