Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

toggleItemSelection

toggleItemSelection( item )
Return type: no return value
If the specified item is selected, it is deselected. If it is not selected, it is selected. Other items in the list box that are selected are not affected, and retain their selected state.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Marsf, BenoitL, Dria
 Last updated by: Sheppy,