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.


Auto Save

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.


<!--         Wijmo Dependencies       -->
<link href="" rel="stylesheet" type="text/css" />

<!--Wijmo Widgets CSS-->
<link href="" rel="stylesheet" type="text/css" />

<script type="text/javascript" src=""></script>

<!--Config Jquery for Wijmo-->
<script type="text/javascript">
        baseUrl: "",
            paths: {
                "jquery": "jquery-1.11.1.min",
                "jquery-ui": "jquery-ui-1.11.0.custom.min",
                "jquery.ui": "jquery-ui",
                "jquery.mousewheel": "jquery.mousewheel.min",
                "globalize": "globalize.min"
<!--         End Wijmo Dependencies       -->

<!--		 Setup Wijmo ComboBox		  -->
require(["wijmo.wijcombobox"], function () {
        $(document).ready(function () {
                data: [{
                    label: 'Please start typing to get suggestions.',
                    value: 'null'
				select : function(){afterSelection()}
			$("#Wikipedia_ComboBox").wijcombobox("option","autoComplete",false); //turn off auto-complete
<!--			End WijmoComboBox Setup				-->
<meta charset="utf-8">
<title>Sample Wijmo ComboBox with dynamic AJAX data</title>

<input id="Wikipedia_ComboBox" placeholder="Type to Search and Use Dropdown" class="wijmo-wijcombobox wijcombobox" style="width:500px; height:50px;"/>

<div id="Entry_Selection">
<div>Here is the link of your selected Wikipedia entry: </div>
<div id="Wikipedia_Link_Area"><a href="null" target="_blank" id="Wikipedia_Link">Entry Link</a></div>




                var dynamicData = [];

function jsonp(url, callback) {
    var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random());
    window[callbackName] = function(data) {
        delete window[callbackName];

    var script = document.createElement('script');
    script.src = url + (url.indexOf('?') >= 0 ? '&' : '?') + 'callback=' + callbackName;

function handleAjaxResponse(input){
	var temp = document.getElementById("Wikipedia_ComboBox").value;
	dynamicData = []; // reset our data source before filling it with resopnse
	for (x = 0; x < input[1].length; x++){
		dynamicData.push({"label": input[1][x].toString(), "value": input[3][x].toString()});
		data: dynamicData
	document.getElementById("Wikipedia_ComboBox").value = temp; // Necessary for a stupid reason; manipulating the data for the combobox seems to reset the input field, which we don't want

function afterSelection(){
	setTimeout(function(){ // setTimeout is necessary to avoid strange results due to wijmo/ajax delay 
		console.log("An entry has been selected");
		var Wiki_Link = document.getElementById("Wikipedia_Link");
		Wiki_Link.href = $("#Wikipedia_ComboBox").wijcombobox("option","selectedValue");
		Wiki_Link.innerHTML =  document.getElementById("Wikipedia_ComboBox").value;

document.getElementById("Wikipedia_ComboBox").onkeyup = function (){
	var query = this.value;
	var URL = ""+encodeURI(query);