or you can
').fadeIn(); if( redirect === 'yes' ){ document.location.href = '/register/'; } }else{ $('#htmega_message_2bff036').html('
'+ msg.message +'
').fadeIn(); } } }); return false; }); });