0

I want to check in if statement whether the select option value is undefined or not.

I tried like below. But it doesn't take effect

if ($('#Combo_DocType').find(':selected').val() === "undefined") {
        $('#failspan').text('undefined');
    }

For example:

if the user doesn't select any one of the options from ComboBox, it will be remain undefined, So I want to alert them,

Liam neesan
  • 2,282
  • 6
  • 33
  • 72

0 Answers0