tags:

views:

15

answers:

1

I am placing three buttons in one li (there 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.

+2  A: 

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();
Gert G