Tuesday, March 3, 2009

calling JS from form in rails

<%= form_tag({:action=>"report"},{:method => :post, :onSubmit => "return isNumeric(document.getElementById('premium_user'))"})%>

No comments: