I believe this is what you are asking
Using jquery selectors you are unable to select elements which are created dynamically.
if this is right then This is what may be the issue as i have also faced the same thing.
When you create dynamic elements which will not be available on page and try to select using jquery selector but it can not be selected.
Dynamically created elements will not be accessible untill we add to page
once we create element make sure we put in page i.e.
$('#divSuggestion').html('<input type="text" id="txt" class="text" />');
after this line you can select
$('.text')
where divSuggestion is the Div inside which wanna add the textbox element.
after inserting Html string to web element ,it will be available on the page,then you can select those textbox.
Hope this may help.
Happy coding