Ajit Teli
2012-Jul-30 09:47 UTC
How to get data from database table ''drivers'' with the help of this.options[this.selectedIndex] ?
Hi all, I have a table named ''drivers'' in database. And in UI, for select_tag onchange, when I change the driver from dropdown menu I will get the changed driver with the help of this.options[this.selectedIndex]. Now how can I fetch the data related to selected driver from database? For example, there are 5 drivers (d1, d2, d3, d3, and d5). When I change from d1 to d2, I need to confirm that d2 driver is free now by getting the data from drivers table. Thanks, AJit -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.