Canceling onclick for link_to_remote within div

If i have a div with an onclick event and a link_to_remote within this
div, is there a way to cancel the onclick event when the link is
clicked? I know one way is to cancel the event propigation with
something like Event.stop, but I’m unsure where to include this. Is
there a way to add an onclick event to link_to_remote? Thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs