I apply:
$(\".newContentLink\").click(function() {
$(\"#test\").append(\"1\");
});
On this:
Not a jQuery bug - Working Demo
There must be a problem with something else in your code. Where is the element with id="test"
in your markup?
EDIT:
Just read chaos' answer, which sounds like a plausible explanation.
By the way, element ids must be unique within HTML markup - this is part of the HTML specification and may be another possible explanation