What could be wrong with this code?

What could be wrong with this code?

  1. $(document).ready(function () {
  2.     $('#newsletter').click(function() { 
  3.         $myAction = ($('#newsletter').prop('checked') ? 'action-1.htm' : 'action-2.htm'); 
  4.         $('#frmContact').attr('action', $myAction); });
  5. });
I'm a newbie in jQuery.

The instruction in line 4 never executes, 

I'm debugging it with Firebug, I place a breakpoint on it, and it never stops there, but a breakpoint in line 3 does.

What could be wrong here?

Thanks in advance

Rafael