jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
78 lines (70 loc) • 3.14 kB
HTML
<html>
<head>
<meta name="keywords" content="jQuery MaskedInput, MaskedInput, Input, Mask TextBox, TextBox, Mask, jqxMaskedInput" />
<meta name="description" content="The jqxMaskedInput widget uses a mask to distinguish between
proper and improper user input. You can define phone number, ssn, zip code, dates,
etc. masks by setting the jqxMaskedInput mask property." />
<title id='Description'>
The jqxMaskedInput widget uses a mask to distinguish between
proper and improper user input. You can define phone number, ssn, zip code, dates,
etc. masks by setting the jqxMaskedInput mask property. TypeScript example.
</title>
<!-- 1. Load references -->
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<style type="text/css">
.jqx-layout-group-auto-hide-content-vertical {
width: 200px;
}
</style>
<script src="../../../scripts/jquery-1.11.1.min.js"></script>
<script src="../../../jqwidgets/jqxcore.js"></script>
<script src="../../../scripts/demos.js"></script>
<script src="../../../jqwidgets/jqxmaskedinput.js"></script>
<script src="../../../jqwidgets/jqxbuttons.js"></script>
<script src="typescript-maskedinput.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
<!-- 2. Create initialization -->
<script>
$(document).ready(function () {
// Create diverse MaskedInputs
createMaskedInput('#numericInput', '#zipCodeInput', '#ssnInput', '#phoneInput', '#regexInput', '#disabledInput', '#clearButton');
});
</script>
</head>
<!-- 3. Display the application -->
<body>
<div class="example-description">
The jqxMaskedInput widget uses a mask to distinguish between
proper and improper user input. You can define phone number, ssn, zip code, dates,
etc. masks by setting the jqxMaskedInput mask property. TypeScript example.
</div>
<div id='jqxWidget' style="font-size: 13px; font-family: Verdana;">
<div style='margin-top: 10px;'>
Numeric
</div>
<input style='margin-top: 3px;' id='numericInput' />
<div style='margin-top: 10px;'>
Zip Code
</div>
<input style='margin-top: 3px;' id='zipCodeInput' />
<div style='margin-top: 10px;'>
SSN
</div>
<input style='margin-top: 3px;' id='ssnInput' />
<div style='margin-top: 10px;'>
Phone Number
</div>
<input style='margin-top: 3px;' id='phoneInput' />
<div style='margin-top: 10px;'>
IP Address (ex: 255.255.255.255)
</div>
<input style='margin-top: 3px;' id='regexInput' />
<div style='margin-top: 10px;'>
Disabled
</div>
<input style='margin-top: 3px;' id='disabledInput' />
</div>
<input style="margin-top: 10px;" type="button" id="clearButton" value="Clear Values" />
</body>
</html>