<!DOCTYPE html> <html> <head> <title> How to Create Dropdown with Search </title> <script type="text/javascript"> $(document).ready(function() { var new_movies = ["God's Not Dead 2", "Captain America: Civil War", "Love Games", "The Huntsman: Winter's War", "The Jungle Book", "Ki & Ka", "Meet the Blacks", "Rocky Handsome", "Kapoor and Sons", "Miracles from Heaven", "Eye in the Sky", "Zootopia", "I Saw the Light", "London Has Fallen", "Divergent Series: Allegiant"]; $("#new_movies").select2({ data: new_movies }); }); </script><javascript> <link href="css/code_css.css" rel="stylesheet" /> </head> <body> <center> <div> </div> </center> </body> </html>