ユーザーがサインアップしたときにjQueryを呼び出すことが可能かどうかはわかりません。
RailsとDevisegemを使用しているので、after_sign_up_pathがあります。
def after_sign_up_path_for(resource)
edit_user_registration_path(current_user)
//call jQuery
end
またはこれが不可能な場合-なぜ私のjsが機能しないのですか?
if($('.alert').val()=='Welcome! You have signed up successfully.'))
$('#congrats').show();
編集:HTML
<div class="alert alert-notice">Welcome! You have signed up successfully.</div>