ruby on rails - RoR onchange check condition before calling remote_function? -
I am using the remote_function call
onchange remote_function Iam
iam using the code written below
- Add name- ",: onchange => remote_function (: url => {: controller =>: name,: verb =>: Create_name})%>Here I want to check that (value) == -1 then call remote_function
Why do you for example
for example you yoiur r Emote_function
can check inside
or
if (escape (value) == -1) {// do something} else {// do not do anything or anything else} def my_remote_function (var) s = "" if (var == "false") s = "Warning ('java')" End of End " & lt; Option & gt; Br Use & lt; / Option & gt; ",: Onchange => my_remote_function (" true ")
Comments
Post a Comment