Skip to content

Instantly share code, notes, and snippets.

Last active Dec 20, 2015
What would you like to do?
jquery live example
# /app/views/contacts/index.html.erb
<div class="contacts">
<div class="contact" id="contact_1">
<p class='name'>Cool Dude 1</p>
<div class="details">...</div>
<div class="contact" id="contact_2">
<p class='name'>Cool Dude 2</p>
<div class="details">...</div>
$(".contact").live('click', function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment