私は次のようなhtmlスキームを持っています
<li>Some text <a href='#' class='click'>Remove</a> <input type='hidden' ></li>
そして私はOnClick機能を持っています
$(".click").click(function() {
// i need to select 'li' and then delete it
// i have this code, but its not working
$(this).prev('li').remove();
return false;
});
以前のhtmlタグonClickを選択するにはどうすればよいですか?