Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


<div id="container">
  <div id="searchbar">
    <input type="text" id="topics" style="float:left"/><input type="hidden" id="topicID" />
    <div id="btn" onclick="checkWeb()" style="float:left">Get Started</div>


                body {background:url('');}

#searchbar{width:540px;height:50px; background:#718fff; border-radius:5px;border:3px solid #718fff; box-shadow: 0 0 0pt 10pt rgba(255,255,255,.5)}

#container {width:540px; height:80px; position:relative; margin:0 auto; padding-top:30%;}

input { width:400px ; height:30px; font-size:20px; outline:none; padding:10px;border:none; background:white}


.ui-autocomplete li {font-family:"helvetica"; padding:5px 15px; background:white; width:420px; margin-left:-40px; box-sizing:border-box;}

.ui-autocomplete li:hover {color:#fc0;}

#btn {background:#4e74ff; width:100px; height:30px; padding:10px; color:white; font-family:"helvetica";cursor:pointer;text-align:center;line-height:30px;}

.ui-helper-hidden-accessible > div {


var topics= [{value:"Air Conditioning",label:"Air Conditioning",id:""},
{value:"Ant Exterminators",label:"Ant Exterminators",id:""},
{value:"Baby Shower Party",label:"Baby Shower Party",id:""},
{value:"Bachelorette Party ",label:"Bachelorette Party ",id:""},
{value:"Birthday Party ",label:"Birthday Party ",id:""},
{value:"Cantonese Lessons",label:"Cantonese Lessons",id:""},
{value:"Chinese Catering",label:"Chinese Catering",id:""},
{value:"Chinese Language Lessons",label:"Chinese Language Lessons",id:""},
{value:"Cockroach Control",label:"Cockroach Control",id:""},
{value:"Corporate Event",label:"Corporate Event",id:""},
{value:"English Lessons",label:"English Lessons",id:""},
{value:"Event Planning",label:"Event Planning",id:""},
{value:"Flute Lessons",label:"Flute Lessons",id:""},
{value:"Hair and Makeup",label:"Hair and Makeup",id:""},
{value:"Halal Catering",label:"Halal Catering",id:""},
{value:"Indian Catering",label:"Indian Catering",id:""},
{value:"Malay Lessons",label:"Malay Lessons",id:""},
{value:"Mandarin Lessons",label:"Mandarin Lessons",id:""},
{value:"Personal Trainers",label:"Personal Trainers",id:""},
{value:"Pest Control",label:"Pest Control",id:""},
{value:"Piano Lesssons",label:"Piano Lesssons",id:""},
{value:"Plumbing",label:"Plumbing",id:" "},
{value:"Rat Control",label:"Rat Control",id:""},
{value:"Swimming Lessons",label:"Swimming Lessons",id:""},
{value:"Termite Exterminators",label:"Termite Exterminators",id:""},
{value:"Tutoring (Home)",label:"Tutoring (Home)",id:""},
{value:"Tutoring (Lower)",label:"Tutoring (Lower)",id:""},
{value:"Tutoring (Upper)",label:"Tutoring (Upper)",id:""},
{value:"Vegetarian Catering",label:"Vegetarian Catering",id:""},
{value:"Violin Lessons",label:"Violin Lessons",id:""},
{value:"Wedding Catering",label:"Wedding Catering",id:""},
{value:"Wedding Planning",label:"Wedding Planning",id:""},
{value:"Dry Cleaning",label:"Dry Cleaning",id:""}];
var url = null;
    $( "#topics" ).autocomplete({
        minLength: 0,
        source: topics,
        focus: function( event, ui ) {
            $( "#topics" ).val( ui.item.label );
            url = $("#topicID").val();
            $( "#results").text($("#topicID").val());    
            return false;
        select: function( event, ui ) {
            $( "#topics" ).val( ui.item.label );
            url = $("#topicID").val();
            $( "#results").text($("#topicID").val());    
            return false;
        if( $(this).val().length === 0 ) {
            url = null;


function checkWeb()
    if(url != null)
    else {
     	return false;