Predict li from the click event

Predict li from the click event

Hi, I am having 4 li tags 
Like 
<ul>
<li></li>
<li></li>
<li></li>
<li></li></ul>

When I click on the li it should do any action it should stay in the same place.
Any idea how to  achieve this.