Would appreciate help on a design strategy.
On a form I have an auto complete text field that I would like to populate with two separate values based on a radio button selection.
Currently the first radio button is loaded via an ajax call on load via hook_menu.
function hook_menu() {
$items = array();
$items['module/state_autocomplete'] = array(
'page callback' => 'state_autocomplete',
'access arguments' => array('create states'),
'type' => MENU_CALLBACK,);
Can I attach an ajax call to an on change event that will reload the text field without reloading the page?