<script type="text/javascript"> $('li.point').click(function(){ $('this').addClass('selected') }); </script>