The HTML markup for a wijtextbox widget can use an input or a textarea element, like this.
Markup |
Copy Code |
---|---|
<h3>Input</h3> <input id="textbox" type="text" /> <h3>TextArea</h3> <textarea id="area" rows="5" cols="80"></textarea> |
You can initialize the widget with the following jQuery script.
Script |
Copy Code |
---|---|
<script id="script1" type="text/javascript"> $(document).ready(function () { $(":input[type='text'],:input[type='password'],textarea").wijtextbox(); }); </script> |
The markup and script featured here results in the following live widget.