|
Title: how to add dynamically combobox from database Post by: sky_proj on March 21, 2019, 08:44:32 PM i want add combobox-easyui dynamically into my page, when i refresh will read my database and show combobox-easyui
Code: <html> Code: testFunc.php Code: table coba just 1 record and 1 field with name "model" as text type the problem my page just show textbox standar html not combobox-easyui, plase help me how to fix this Thanks Title: Re: how to add dynamically combobox from database Post by: jahangir on March 21, 2019, 11:23:57 PM EasyUI controls can't be creaded by just appending the html tags after DOM is fully loaded, you have to re-create it with the javascript after appending html tags.
Plese try this in you ajax call success function. Code: document.getElementById('mybody').innerHTML =data[0].model;Title: Re: how to add dynamically combobox from database Post by: sky_proj on March 22, 2019, 12:27:00 AM EasyUI controls can't be creaded by just appending the html tags after DOM is fully loaded, you have to re-create it with the javascript after appending html tags. Ok thanks :)Plese try this in you ajax call success function. Code: document.getElementById('mybody').innerHTML =data[0].model; |