How to Enable jQuery Each on Dynamically Added Content

How to Enable jQuery Each on Dynamically Added Content

Can you please take a look at this Demo and let me know why I am not able to use the $('.quantity').each(function() when adding the content dynamically to the document? As you can see the $('.quantity').each() is functioning properly when is hard coded but not working on dynamic content

$('.quantity').each(function() {   });