How to check whether the selectbox is singleListbox or multipleListBox.

Note- use the method getAttribute("multiple") , if it return 'true' then it is multipleListBox else if return null then it is singleListBox.