html dropdown data-rule code example Example: dropdown validation using jquery BY LOVE if($('#ddlState option:selected').val() == "")