![]() |
[Ajax]How to observe the value of the element using element id? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [Ajax]How to observe the value of the element using element id? (/showthread.php?tid=31107) |
[Ajax]How to observe the value of the element using element id? - El Forum - 06-07-2010 [eluser]suba[/eluser] Hi all, am using Ajax in CI. I downloaded Ajax library from CI. I have one dropdown list. When I change the value from dropdown list, I want to get selected value from dropdown list & using this value I want to check with my table then I want to retrieve some value from table related to my selected value. My question is, Using Ajax, How can I get selected value from dropdwon list? pls advice me. Code: <select name='country' id='country' > Then when I select my country, I want show state of the selected country. Example Now choose India from dropdown list. then I want to dispaly state list like this Code: <select name='state'> Please help to me. I tried to use these two functions. But I coudn't get solution. Code: observe_form($form,$options=null); [Ajax]How to observe the value of the element using element id? - El Forum - 06-07-2010 [eluser]suba[/eluser] pls advice me |