jQWidgets Forums

jQuery UI Widgets Forums General Discussions jqxMaskedInput value shows prompt Chars "_"

This topic contains 1 reply, has 2 voices, and was last updated by  admin 5 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Mahesh
    Participant

    Hi,

    After submitting a form the jqxMaskedInput value
    shows “__________” (when not entered the value),
    shows “___1234___” (if entered incompletely),

    It works fine if entered completely like this
    shows “1234456789” (if entered completely)

    I need to restrict the user to enter the data in correct format otherwise keep it blank.
    I want the value of input without the prompt Chars “_”

    I tried both
    var value = $(‘#jqxMaskedInput’).jqxMaskedInput(‘value’);
    var value = $(‘#jqxMaskedInput’).val();
    but not use.

    How to achieve such case using jqxMaskedInput

    Please guide.

    Regards,

    Mahesh


    admin
    Keymaster

    Hi Mahesh,

    The MaskedInput’s value is posted as it is displayed on the screen. We do not have separate inputs for masked and unmasked value. You can do that: Put a hidden input in your form and dynamically update it with the masked input’s value without the prompt chars.

    Best Regards,
    Peter Stoev

    jQWidgets team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.