.val() on <select multiple> when no options are selected

.val() on <select multiple> when no options are selected

When .val() is used on a <select multiple> element, it returns an array of all the selected options. However, if no elements are selected, it returns null. It seems more appropriate for it to return an empty array, so that the limiting case is not treated specially.