<!doctype html>
<html>
    <head>
        <!-- meta -->
        <!-- meta -->
        <title>Basic usage</title>
        <!-- css -->
        <link href="../styles/examples.css" rel="stylesheet"/>
        <link href="../../../styles/kendo.common.css" rel="stylesheet"/>
        <link href="../../../styles/kendo.kendo.css" rel="stylesheet"/>
        <!-- css -->
        <!-- script -->
        <script src="../../../src/jquery.js"></script>
        <script src="../../../src/kendo.core.js"></script>
        <script src="../../../src/kendo.calendar.js"></script>
        <!-- script -->
    </head>
    <body>
        <!-- nav -->
        <!-- nav -->
        <!-- description -->
        <div class="description">Basic usage</div>
        <!-- description -->
        <div id="example" class="k-content">
            <h3>Creating a ComboBox from <code>&lt;input /&gt;</code></h3>
            <div class="code-sample">
                <h4 class="code-title">Source:</h4>
                <pre class="prettyprint">
&lt;input id="input" value="1" /&gt;

&lt;script&gt;
    $("#input").kendoComboBox([
        { text: "Item 1", value: "1" },
        { text: "Item 2", value: "2" },
        { text: "Item 3", value: "3" }
    ]);
&lt;/script&gt;
</pre>
            </div>
            <div class="code-sample output">
                <h4 class="code-title">Output:</h4>
                <div class="prettyprint">
                    <input id="input" value="1"/>
                </div>
            </div>

            <h3>Creating a ComboBox from <code>&lt;select /&gt;</code></h3>
            <div class="code-sample">
                <h4 class="code-title">Source:</h4>
                <pre class="prettyprint">
&lt;select id="select"&gt;
    &lt;option&gt;Item 1&lt;/option&gt;
    &lt;option&gt;Item 2&lt;/option&gt;
    &lt;option&gt;Item 3&lt;/option&gt;
&lt;/select&gt;

&lt;script&gt;
    $("#select").kendoComboBox();
&lt;/script&gt;
</pre>
            </div>
            <div class="code-sample output">
                <h4 class="code-title">Output:</h4>
                <div class="prettyprint">
                    <select id="select">
                        <option>Item 1</option>
                        <option>Item 2</option>
                        <option>Item 3</option>
                    </select>
                </div>
            </div>

            <script>
                $(document).ready(function() {
                    // create ComboBox from input HTML element
                    $("#input").kendoComboBox([
                        { text: "Item 1", value: "1" },
                        { text: "Item 2", value: "2" },
                        { text: "Item 3", value: "3" }
                    ]);

                    // create ComboBox from select HTML element
                    $("#select").kendoComboBox();
                });
            </script>

            <style scoped>
                #example h3 {
                    clear: both;
                }

                #example .code-sample {
                    width: 60%;
                    float:left;
                    margin-bottom: 20px;
                }

                #example .output {
                    width: 24%;
                    margin-left: 4%;
                    float:left;
                }
            </style>
        </div>
        <!-- tools -->
        <!-- tools -->
    </body>
</html>
