jquery - Hide the button which is available in p tag which is last of li tag -


I'm keeping three buttons (4 p tags in a li tag) in one of the last p tags. I have to catch the second button of the last P tag. Please suggest some tips for doing this.

This will give you the second button in the previous P tag:

  $ ('P: final: button'). Eq (1) .attr ("id")  

And if you want to hide it:

  $ ('p: last: button') . Eq (1) .attr ("id"). Hide ();  

Comments