jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable button click validator ?

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Mariya 11 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • button click validator ? #32485

    mallepaddi
    Participant

    Hi

    There are three combo boxes in my form (brand / product / supplier).

    I need to use “Validator” to show an error when user doesn;t select any of boxes.

    Is it possible something like …

    rules: [
    {
    input: ‘#productHierSearchButton click’, message: ‘Select one of search field(s).’, action: ‘keyup’, position: ‘right:20,0’, rule: function (input, commit) {

    var brand = $(“#comboBoxBrand”).jqxComboBox(‘getSelectedItem’);
    var group = $(“#comboBoxGroup”).jqxComboBox(‘getSelectedItem’);
    var subgroup = $(“#comboBoxSubGroup”).jqxComboBox(‘getSelectedItem’);

    if(brand && group && subgroup) {
    return true;
    } else {
    return false;
    }
    }
    }

    Thanks

    button click validator ? #32498

    Mariya
    Participant

    Hi mallepaddi,

    Please take a look at the provided example at: http://jsfiddle.net/jqwidgets/MeDbb/
    I hope it would work in your case.

    Best Wishes,
    Mariya

    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.