JQuery Input

Invoke the selectAll method.of the jqxInput. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<input type="text" id="input" />
<div>
    <input style="margin-top: 20px;" type="button" id='jqxButton' value="Select all" />
</div>

JavaScript

$("#input").jqxInput({
    height: 25,
    width: 200,
    theme:'energyblue'
});
$("#input").val('jqxInput');
$("#jqxButton").jqxButton({
    height: '30px',
    width: '120px',
    theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
    $('#input').jqxInput('selectAll');
});