What could be wrong with this code?
- $(document).ready(function () {
- $('#newsletter').click(function() {
- $myAction = ($('#newsletter').prop('checked') ? 'action-1.htm' : 'action-2.htm');
- $('#frmContact').attr('action', $myAction); });
- });
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