0

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.

tereško
  • 58,060
  • 25
  • 98
  • 150
jpo
  • 3,959
  • 20
  • 59
  • 102
  • are you asking two questions? Caching and unique id in the html returned??? – Valamas Apr 01 '13 at 21:03
  • I want to know how setting caching to false assigns unique ID and how I can retrieve these unique ids – jpo Apr 01 '13 at 21:06

0 Answers0