Hi,
really hope you can help. I need some conditional formatting using jquery.
I got the code working on https://jsfiddle.net/9gHhD/
But where ever I put the same code on the page, noting happens.
Would you have a tip?
Thanks in advance,
Marcel
Hey!
How are you including it? have you checked the JavaScript Console? you may need to wrap it like this:
<script>
(function($){
$(window).load(function() {
var searchText = 'blabla';
$('cite.fn').filter(function () {
return $(this).text() === searchText;
}).css('color', 'red');
});
})(jQuery);
</script>
Best regards,
Josue