I am trying to populate dropdown list according to other dropdown list using ajax prototype.js framework.But its seems ajax observField function is not picking the change in first dropdown list . I have two tables named mobiles and moddels moddels table has an coloumn mobile_id for association. my models are as follows ***mobile.php*** <? class Mobile extends AppModel { var $name = 'Mobile'; var $hasMany = array('Moddel'); } ?> **moddel.php** <? class Moddel extends AppModel { var $name = 'Moddel'; var $belongsTo = array('Mobile'); } ?> controllers are as follows **moddel_controller.php** <? class ModdelsController extends AppController { var $name = …

Member Avatar
Member Avatar
+1 forum 1

The End.