hi
i am using remote_function call
onchange before calling remote_function i want to check the condition
iam using code written below
<%= select_tag 'name', options_for_select(search.collect{ |v| [v.name]})+ "-Add Name-", :onchange => remote_function(:url => {:controller => :name, :action => :create_name}) %>
here i want to check if (escape(value) == -1) then call remote_function