Skip to content

Instantly share code, notes, and snippets.

@ctsstc
Created August 2, 2015 22:06
Show Gist options
  • Save ctsstc/f16f3437eb65339fd58e to your computer and use it in GitHub Desktop.
Save ctsstc/f16f3437eb65339fd58e to your computer and use it in GitHub Desktop.
$('#staff_mgmt_org_chart_open_positions>tbody>tr>td>table>tbody>tr td.kc-staffchart-column').each(function(){
if ($(this).text().indexOf("position closed") > -1) {
//$(this).css('background-color', "red");
// Get the parent container and the next container with the description
var container = $(this).parent().parent().parent().parent().parent();
var description = container.next();
// Fade out closed positions and their description
container.css('opacity', '.4');
description.css('opacity', '.4');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment