I have some function that (for example only) looks for all divs and appends to them.
function test() {
$('div').append(/*...*/);
}
Now I'm loading new divs via $.get function to my container element. After loading of new divs I want to call test() function in contex (limited to) my container element. I only want to append sth to new divs. I dan't want to append twice to old divs.
I don't want to edit test function if it is possible.
$('div')selects all<div>elements. You'd have to modify your selector to$(parent, 'div')and provide aparentargument totest.'div'