<h1>
    MVC and HTML Events
</h1>
<p>
    C1 MVC events do not replace HTML events. For example,
    mouse and keyboard events must be detected and handled
    using regular HTML handlers attached to the control's
    <b>hostElement</b>.
</p>
<p>
    <b>Control</b> class of MVC makes HTML event easier to
    use by providing <b>addEventListener</b> and
    <b>removeEventListener</b> methods that automatically
    clean up when a control is destroyed, which helps in avoiding
    memory leaks.
</p>
<p>
    Below are some input controls with the HTML event handlers
    attached to them:
</p>
<p>
    @(Html.C1().ComboBox()
    .Id("theComboBox")
    .Bind((List<string>)ViewBag.Countries))

    @(Html.C1().InputDate().Id("theDate"))
</p>
<div id="log">
    Please move the mouse over the controls.
</div>

<div class="panel panel-warning">
    <div class="panel-heading">
        For more details on C1 MVC and HTML events, please refer to
        our blog on
        <a href="http://wijmo.com/blog/html-and-wijmo-events/">HTML and Wijmo Events</a>.
    </div>
</div>