You can simply use the PHP foreach loop to create or populate HTML , , or element. This method inserts the specified content as the last child of the jQuery collection, thus adding the option to the select element. You can also preselect a value in dropdown list of items in HTML forms. This happens by default as array count start from 0, by default. You can combine reports of selected drop down boxes or can show only the recent selected option. I have a form with select drop down options. multiple: Added if several item may be selected at once. This is important as we don’t want to find ourselves in a situation where a user is modifying our form values with Firebug or Chrome’s Developer Tools (this would allow them to add checkbox options that don’t exist). The first line establishes the database connection, followed by a select query to return the values from a table. From the above output, we can see that the option values start from 0, 1, etc. In this tutorial we will help you to create a Dynamic Select Option Menu using Ajax and PHP. In this tutorial we will create a Dynamically Add Select Options using PHP. (Yes, I've tried googling, however any search for "options" has results for select options, not the select2 initialization options. 'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); Create and array with all values for the select element. Form facade will help to create text box, radio button, select box etc. Note: The