Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Apply styles to all group by items in a document library

$
0
0

Dear all,

I have used below code to apply style based on the document name.My list is having group by.The style is not applying to last group by items.Iam attching screenshot.Please help.Thanks in advance.

<script type="text/javascript" src="</script">https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() 
{
ExpGroupRenderData();

});

function ExpGroupRenderData()
    {
   $(".ms-listviewtable  > tbody > tr a:contains('Meeting')").parent().parent().parent().css("background-color", "yellow");
  $(".ms-listviewtable  > tbody > tr a:contains('Decision')").parent().parent().parent().css("background-color", "lightblue");

    }

</script>

Regards,


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>