There will be some changes in controller's and view's files also. Only one change in this tutorial in ctrl_view.php on line 28 it must be, student_city because in database row name is student_city so we can echo its through $student->student_city. using the select2 plugin, we can perform the search functionality in select box, manage autocomplete dynamically using ajax and add select options with checkbox etc. !!! So what should those be? how will i set the selected item in select2 multiple ? How can I set the default value for an HTML
. 1) Create a view: select.php and paste the following code: 2) Create a controller: Examples.php and paste the following code: 3) Create a model: ExSelect.php and paste the following code: If you have not created a new routing, create one as shown below:if(typeof ez_ad_units!='undefined'){ez_ad_units.push([[320,50],'geekinsta_com-large-leaderboard-2','ezslot_5',161,'0','0'])};__ez_fad_position('div-gpt-ad-geekinsta_com-large-leaderboard-2-0'); Join the newsletter to get the latest updates. Download scriptvar dl_script_content = "