ここに、jsが埋め込まれた私のリンクがあります
<a style="padding: 5px;" onclick="confirm_message(); $('contact_693_').show(); $('errors_693_').hide(); this.hide(); $('dont_693_').show();; return false;" id="the_link_693_" href="#" class="add_someone_else">Check it out</a>
そして、ここに私の機能があります
function confirm_message(){
var response = confirm("Are you sure?");
if(response){
return false;
}else{
return false;
}
}
基本的に、ユーザーが確認で「いいえ」をクリックした場合、他のjsを起動したくありません....しかし、他のすべてのjavascript
$('contact_693_').show(); $('errors_693_').hide(); this.hide(); $('dont_693_').show();; return false;"
ユーザーが確認で「はい」または「いいえ」をクリックしても、まだ起動します...これを修正する方法についてのアイデア....
また、この埋め込み js は私が作成したものではなく、Ruby を使用してページ上に構築されています...