## Properties

Name | Type | Default
--- | --- | ---
value | String | null
Sets the masked input's value. #### Code examples Initialize a MaskedInput with the `value` property specified.
mask | String | '#####'
Sets the masked input's mask. #### Code examples Initialize a jqxMaskedInput with the `mask` property specified.
    $("#jqxMaskedInput").jqxMaskedInput({ width: 250, height: 25, mask: '###-##-####'});
width | Number/String | null
Sets width of the masked input in pixels. Only positive values have effect. #### Code examples Initialize a jqxMaskedInput with the `width` property specified.
    $('#jqxMaskedInput').jqxMaskedInput({ width: '250px'});
height | Number/String | null
Sets height of the masked input in pixels. #### Code examples Initialize a MaskedInput with the `height` property specified.
    $('#jqxMaskedInput').jqxMaskedInput({ height: '25px'});
textAlign | String | left
Sets the text alignment. #### Code examples Initialize a MaskedInput with the `textAlign` property specified.
    $('#jqxMaskedInput').jqxMaskedInput({ textAlign: "right"});
readOnly | Boolean | false
Sets the readOnly state of the input. #### Code examples Initialize a jqxMaskedInput with the `readOnly` property specified.
    $('#jqxMaskedInput').jqxMaskedInput({ readOnly: true });
promptChar | String | "_"
Sets the prompt char displayed when an editable char is empty. #### Code examples Initialize a jqxMaskedInput with the `promptChar` property specified.
    $('#jqxMaskedInput').jqxMaskedInput({ promptChar: "." });
## Events
valuechanged | Event |
This event is triggered when the value is changed. #### Code examples Bind to the valuechanged event by type: jqxMaskedInput.
    $('#jqxMaskedInput').bind('valuechanged', function () { // Some code here.});
textchanged | Event |
This event is triggered when the text is changed. #### Code examples Bind to the textchanged event by type: jqxMaskedInput.
    $('#jqxMaskedInput').bind('textchanged', function (event) { // Some code here.});
## Methods
maskedValue | Method |
Sets the editable input value without mask characters. For example: If your mask string is set to '(###)###' and you invoke the maskedValue method passing '4444' as parameter, the jqxMaskedInput widget should display '(444)___'. #### Code examples Invoke the maskedValue method.
    @param String, Number
    $("#jqxMaskedInput").jqxMaskedInput('maskedValue', value);
inputValue | Method |
Sets the editable input value without mask characters. For example: If your mask string is set to '(###)###' and you invoke the inputValue method passing '4444' as parameter, the jqxMaskedInput widget should display '(444)4__'. #### Code examples Invoke the inputValue method.
    @param String, Number
    $("#jqxMaskedInput").jqxMaskedInput('inputValue', value);
val | Method |
Gets or sets the value. #### Code examples Get the value using the val method.
    var value = $('#jqxMaskedInput').jqxMaskedInput('val');
Set the value using the val method.
    $('#jqxMaskedInput').jqxMaskedInput('val', 1242);