Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Can you suggest an article to create dynamic id's ? Commented Aug 6, 2015 at 12:07
  • 1
    there are lots of libraries that can do it for you: e.g. link img.attr("id", _.uniqueId("imgUserDisplay")); Commented Aug 6, 2015 at 12:16
  • preview.append(img) not working after switching to img.attr("id", _.uniqueId("imgUserDisplay")); Commented Aug 6, 2015 at 12:53
  • Have you included the lodash library? e.g. <script src="://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script> Commented Aug 6, 2015 at 12:59
  • preview.append(img) started Working :) , Now lets see //var_name.attr("id", _.uniqueId("//some_id")); gives me expected results . Commented Aug 6, 2015 at 13:46