I\'am trying to change \"onclick\" attribute in jQuery but it doesn\'t change, here is my code:
$(\'#stop\').click(function() { $(\'next\').attr(\'oncli
As @Richard pointed out above, the onClick needs to have a capital 'C'.
$('#stop').click(function() { $('next').attr('onClick','stopMoving()'); }