[Solved] validation for two select box using array [closed]

[ad_1]

one way using jQuery

function validate(){
    var key = $("#select-key").val(),
        val = $("#select-value").val();
    return key in a && a[key] == val;
}

Assuming a is your array and your select boxes have the IDs select-key and select-value respectively.
Hope this helps.

[ad_2]

solved validation for two select box using array [closed]