I have a drop down select which fires an ajax call once selected.
So when i select anything in the email_seperator drop down it fisre the
ajax event below.
What i want is when the page first loads for this ajax event to fire
once so the correct information is diaplyed. Ive tried something like
the below but it works for focus but not for click
I have a drop down select which fires an ajax call once selected.
So when i select anything in the email_seperator drop down it fisre the
ajax event below.
What i want is when the page first loads for this ajax event to fire
once so the correct information is diaplyed.
What does 'so the correct information is displayed [sic]' mean? If you mean
you want to give the dropdown an initial value, options_for_select lets you
specify the selected value. See the documentation for that method and the
ones that follow it at api.rubyonrails.org.
What i want is when the page first loads for this ajax event to fire
once so the correct information is diaplyed.
What does 'so the correct information is displayed [sic]' mean? If you
mean
you want to give the dropdown an initial value, options_for_select lets
you
specify the selected value. See the documentation for that method and
the
ones that follow it at api.rubyonrails.org.
HTH,
Bill
Yes i have the correct value displaying in the drop down but this then
fires an ajax request when clicked to update some components on the
view. Id like to automaticall fire this event when the page loads??