Displaying 1 result from an estimated 1 matches for "set_tojid".
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi,
Has anyone successfully implemented the :onsubmit option for
form_remote_tag. It doesn''t seem to work for me. Is there any specific
version of rails which is required for the same.
Here''s my piece of code.
<script>
function set_tojid(){
alert(''onsubmit'');
}
</script>
<%= form_remote_tag :update => '''', :url => { :action => ''''}, :onsubmit
=> "set_tojid()", :after => "clearinput()" %>
<%= text_field_tag :newmessage, nil, {:s...