Example list:

Click the button to get the HTML content of the previous sibling of the second list item.

Note: The previousElementSibling property is not supported in IE8 and earlier versions.