我有一个像选择上的HTML标记的onClick
<li>Some text <a href='#' class='click'>Remove</a> <input type='hidden' ></li>
HTML格式,我有功能的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?
该死,我花了这么多时间,因为我不知道'李'是父母...... :) – 2012-07-21 13:48:13