<script type="text/javascript"> $('li.point').click(function(){ $('this').addClass('selected') }); </script>
$(this).addClass('selected');
<!DOCTYPE HTML> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <style> .selected { color: red; } </style> </head> <body> <li class="point">Click me!</li> <br> <this>This is text!</this> <script> $('li.point').click(function() { $('this').addClass('selected'); }); </script> </body> </html>