Form Tag As Base Selector
Say I've created a jQuery reference to a form tag ($formRef), and within the form I am dynamically adding and removing DOM elements.
Will these selectors, a & b, reference the same element?
var a = $formRef.find('#elementAddedPostFormReferenceCreation');
var b = $('#elementAddedPostFormReferenceCreation');
I've always believed that with dynamic HTML, the DIV containing the dynamic content should not be cached because it will only 'find' the elements that existed when the reference was created. But I've been testing and this idea is proving to be incorrect.
Can anyone weigh in on this?