KW Online Tools Zone
Knowledge Walls
View All Tools Home
PARENTOFPARENT
[Jquery editor]
Run
Share Link
Clear
HTML [Ctrl+Enter] - to run
parent of parent
parent
childOne
childTwo
CSS [Ctrl+Enter] - to run
Jquery [Ctrl+Enter] - to run
$(function(){ $(".child").click(function(){ $(this).parent().parent().css("color","red"); }); });
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved
Copyright © 2021 Knowledge walls, All rights reserved