Wijmo UI for the Web
Markup and Scripting
Wijmo User Guide > Widgets > Input Widgets > InputText > Markup and Scripting

The HTML markup for an InputText widget looks like this.

Markup
Copy Code
<textarea id="textbox1" ></textarea>

You can initialize the widget with the following jQuery script. The options set in this script create an input that only allows users to enter four lines of text.

Script
Copy Code
<script type="text/javascript">
    $(document).ready(function () {
        $("#textbox1").wijinputtext(
        {
            maxLineCount: 4
        });
    });
</script>

The markup and script featured here results in the following live widget. Enter text in the widget and notice that it only accepts four lines.

See Also

Reference