Wednesday, September 25, 2013

Cascading (Dependent) Drop Down list.

Hi,

I have a sql table having columns id, parent_id and title. All items with with parent_id =0 are parents and should appear in a dropdown list. That I have done. Now I want another dropdown that on selection of parent, shows all the children of that parent. I am working on cakephp MVC framework.
There's only one database table so having a controller , model for that and have to have both the drop down in same view.
Like on selection of first value, second dropdown should show only the child elements of that parent to select.

Any help.

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: