ksa,
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
.on {
background-color: green;
}
</style>
<script type="text/javascript">
$(function (){
$('ul').on('click','li:not(".on")',function (){
select(this)
});
$('ul').on('click','.on',function (){
action();
});
});
function select(Obj) {
$(Obj.parentNode).find('li').removeClass('on');
$(Obj).addClass('on');
};
function action() {
alert('Action!')
};
</script>
</head>
<body>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>