- Adding class to a sibling once sibling is found
- if ($('divA').siblings().text() == "1") {
- the code here needs to add a class to that specific sibling where text = 1
- }
- $('divA').siblings().filter(function(index) {
- return $(this).text() == "1";
- }).addClass('yourClass');