I have 2 input fields, both are autocomplete fields
for example:
first field would be state field,
and the second field would be the city field -those that belong to the
first field (state field)-

How can I pass the ID of the state to the 2nd autocomplete so i can
get the cities that belong to the state

here is a piece of what I have
                        <?php echo $ajax->autoComplete('state.name', '/map/
autoCompleteState',array('minChars'=>3,'frequency'=>'0.4',
'afterUpdateElement' =>  'getSelectedId'))?>

                        <?php echo $ajax->autoComplete('city.name', '/map/
autoCompleteCity/'  ,array('minChars'=>3,'frequency'=>'0.4'))?>


Thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to