jQWidgets Forums

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    jqxvalidator Posts
  • jqxvalidator #13044

    dke
    Participant

    Hi,

    I have this input rule:

    { input: ‘#LENGTH_POPUP’, message: ‘Numeric only!’, action: ‘keyup, blur’, rule: ‘number’ }

    When I enter: 9adfas I got valid input which is false
    I would like to validate a whole string is a number not validate only first character

    Please advise,

    Thanks

    jqxvalidator #13050

    Dimitar
    Participant

    Hello dke,

    Thank you for your feedback. We will investigate the reported behaviour.

    Here is a workaround, using a custom rule:

                                            { input: '#LENGTH_POPUP', message: 'Numeric only!', action: 'keyup, blur', rule: function () {
    var value = $("#LENGTH_POPUP").val();
    var result = !isNaN(value);
    return result;
    }

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.