php - Retrieve details of selected object with AJAX [SilverStripe] -


i have select box contains teams in db in table 'team'. each team plays 1 or more divisions in division table. team has many divisions , division has many teams.

i new ajax , need retrieve divisions team plays when team selected in dropdown field. code must implement on , front end achieve this? how can pass selected team ajax return me divisions? understand need php code handle request, how pass selected team php knows needs return?

thanks. if need code let me know (but haven't got far handle this).


Comments