JSFiddle - React, Tailwind, and code Playground

by djarekg

HTML

<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.default.min.css">
<h3>Cap Size</h3>
            <select id="size">
                <option>S - 6 3/4"</option>
                <option>M - 7 1/4"</option>
                <option>L - 7 1/8"</option>
                <option>XL - 7 5/8"</option>
            </select>

JavaScript

$("#size").kendoDropDownList().change(function(e) {
    alert("Why isn't this showing when setting value in document.ready???");
});

var sizeDropDown = $("#size").data("kendoDropDownList");
//var oldValue = sizeDropDown.value();
$(document).ready(function() {
    sizeDropDown.value('M - 7 1/4"');
});