[jQuery] Designer new to jQuery. Using Greasemonkey and jQuery

[jQuery] Designer new to jQuery. Using Greasemonkey and jQuery


Hi there. I'm not very good at scripting or programming but at least
with jQuery some of it makes sense to me and so I'm trying to build a
custom script that alters some of the functionallity of the website
rememberthemilk.com but I can't get past one problem.
Any query I put through jQuery gets reset when I click elsewhere on
the page. What do I need to do to prevent RTM from reseting all my
hard work in jQuery?
For example at the moment I have the following code...
<pre>
// When the page is ready
$(document).ready(function() {
    // Change element to red background
    $(".xtd_tag:contains('+')").css("background", "red");
});
<pre>
This makes all .xtd_tag elements which contain the plus (+) character
have a red background on initial load but when I click on another list
in RTM it goes back to normal.
Many thanks for your time,
Gavin