How to get the click event values outside the function in jQuery
<p>How can I get the onclick event (this value change when click on div) in jQuery?</p>

<pre><code>$("ul li").click(funtion(){
  var v = $(this).val();
});

$(function(){
  alert(v);
});
</code></pre>
