Create an ajax control in drupal 7
We know that in drupal you can attach #ajax property to an existing ajax ready control to have ajax functionality, such controls like ‘button’,’textarea’,’select’,’radio’ etc, to find the whole list see system_element_info() in which all the controls that #process function includes ‘ajax_process_form’ are ajax read controls.
The question comes when you want an ajx control which is not in the system_element_info(), in my case I want to use bootstrap dropdownbutton, which renders as
