simply add one empty option, like this: <option value="">--Select--</option> it will cause the exception.