jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox validation for combobox

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • validation for combobox #50160

    rani
    Participant

    Hi,

    i have an issue with combobox validation , below is my code

    $(‘#frmTitle’).jqxValidator({
    hintType: ‘label’,
    animationDuration: 0,
    rules: [{
    input: ‘#cmbTVTitle input’,
    message: ‘Required!’,
    action: ‘select’,
    rule: function (input, commit) {
    var value = $(‘#cmbTVTitle’).val();
    if (value == “”) {
    return false;
    }
    return true;
    }
    }
    ]
    });

    when i click on button, it is firing validation but it is not displaying message and red color border as it shows for other input control…

    regards,
    rani.

    validation for combobox #50162

    Dimitar
    Participant

    Hello rani,

    The input property should be set to ‘#cmbTVTitle’ and not to ‘#cmbTVTitle input’.

    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.