I use XAJAX, The structure: <select name="countryid" onchange="xajax_changecity(this.value);"> <div id="citydiv"></div> xajax_changecity(this.value); function puts cities in citydiv depending the countryid value. it takes 2 form element: input and select-box The problem is: The form doesn't process the form elements put later by AJAX call.