开发者

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

开发者 https://www.devze.com 2023-01-07 16:42 出处:网络
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

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消