i am using remote_function call
onchange before calling remote_function i want to check the condition
iam using code written below
-Add Name-“,
:onchange => remote_function(:url => {:controller => :name, :action => :create_name})
%>
here i want to check if (escape(value) == -1) then call remote_function
Why do you want do the check here ? You may do check inside yoiur
remote_functionfor example
or
edits
example helper