Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Js Query External List Web Part

$
0
0

I am trying to appply a Js Query to higlight those rows in the external List which have the word "pending". I did this by adding the JS Query in the existing web Part which contains the external list.  The below js query does not seem to be working. Let me know your thoughts. Thx!

Below is my js query.

<script type="text/javascript">
$(document).ready(function(){
$Text = $("td .ms-vb2:contains('Pending')");
$Text.parent().css("background-color", "#461B7E");
var myelement = $Text.parent().parent();
$Text = $("td .ms-vb2:contains('Rejected')");
$Text.parent().css("background-color", "#4CC417");
$Text = $("td .ms-vb2:contains('In Progress')");
$Text.parent().css("background-color", "#EAC117");
});
</script>


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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