Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #471554

    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

    #471561

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.