I have a partial view which I load dynamically by calling a function similar to this as described here
$("#addItem").click(function() {
$.ajax({
url: this.href,
cache: false,
success: function(html) { $("#editorRows").append(html); }
});
return false;
});
As described, the cache is set to false to maintain the uniqueness of the elements. How does the code above acheive this? That is, what is the new ID that is assigned to the elements? How can I control these Ids?
I have a partial view where each I pass the id of a control to another control. However, I do not know how to do this after a partial view has been rendered dynamically. I need some way to figure out the new Id that is assign to each element.