Skip to content
tanema edited this page Mar 18, 2012 · 1 revision

button_to(value, onclick[, html_options])

This creates a button that will do a javascript action on click

js_button("hello","alert('hey')")
 
 => 
 
<input onclick='alert('hey')' value='hello' id='' type='button' name='' />

Clone this wiki locally