Grow your CSS skills. Land your dream job.

Last updated on:


jQuery(function () { 
    jQuery(":contains(FIND)").not(":has(:contains(FIND))").each(function () { 
        var that = $(this), 
            html = that.html(); 
        html = html.replace(/(\(FIND:.*?\))/g, "REPLACE-WITH"); 

Reference URL


  1. That is so over-complicated.

    • Permalink to comment#

      I think the only reasonable response to that is…
      “Put up or shut up.” Let’s see your alternative.

    • I would if I could work out how to post code into these comment blocks.

    • This would be javascript, so no special formatting is needed at all. Just put it in between <pre><code> tags. If it comes out fucked up, I fix it.

Leave a Comment

Posting Code

Markdown is supported in the comment area, so you can write inline code in backticks like `this` or multiline blocks of code in in triple backtick fences like this:

<div>Example code</div>

You don't need to escape code in backticks, Markdown does that for you. If anything screws up, contact us and we can fix it up for you.

*May or may not contain any actual "CSS" or "Tricks".