Here is my link with embedded 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>
And here is my function
function confirm_message(){
var response = confirm("Are you sure?");
if(response){
return false;
}else{
return false;
}
}
Basically I dont want any of the other js to fire if the user clicks no in the confirm....but all the other javascript
$('contact_693_').show(); $('errors_693_').hide(); this.hide(); $('dont_693_').show();; return false;"
still fires whether the user clicks yes or no in the confirm...any ideas on how to fix this....
Also this embedded js was not created by me and is built on the page with ruby...