Closed JesperWe closed 9 years ago
OK, now I have understood :-)
I have realized all the documented stuff is relative to this
, so need this.$()
, not $()
Yes. And also have in mind that IDs have to be unique on the page. So #foo
should always match only one element anyway.
The documentation section on Access to Rendered Content says:
I am having trouble with this when I have two copies of a component instantiated on the same page. A
$("#foo")
selector in an event handler in the second instance gives me the element from the first. Have I not understood this correctly?