Skip to content

Instantly share code, notes, and snippets.

@anirudhgaur
anirudhgaur / index.html.erb
Created February 11, 2012 22:43
sending values from javascript into ruby injection
<input type="button" onclick="myfunction()" value="NEWEdit" />
<script language="javascript" type="text/javascript">
$(function() {
$(document).on('click', '#edit', function() {
$('#he').text($('#posts').data('count'));
});
});