I am placing three buttons in one li (开发者_如何学Cthere are 4 p tags in one li tag) of last p tag. I need to catch the last p tag's second button. Please suggest some solution to do this.
This will give you the second button in the last P tag:
$('p:last :button').eq(1).attr("id")
And if you want to hide it:
$('p:last :button').eq(1).attr("id").hide();
精彩评论