JQuery $(this) selector function and limitations
I need help understanding $(this). Is it possible to narrow the focus of 'this' within the parentheses or does "this" preclude the use of any other attributes? For example: I don't understand why this code: $(this).children("div") can't be rewritten like this: $(this +" div") without having to resort to something like: $('#'+$(this).attr("id")+" div") Also, can you point me to 'this' in the JQuery documentation? It is difficult to use 'this' as a search term for obvious reasons. this isn't a jQuery "thing", but a basic JavaScript one . It can't be re-written the way you have in examples