It doesn't work because [...@attr] selectors were removed in jQuery 1.3. http://docs.jquery.com/Release:jQuery_1.3#Changes
You can write something like this : $("#follow_me").click(function() { $("input[name=article_id[]]").attr("checked", this.checked ? "checked" : "" ) })