title: dynamically appending elements on dynamically created elements
body: <p>I have a modal with dynamic content. 
  e.g. 
  I can create an item by typing someting in a textbox and hit enter. 
  After I hit enter I want a notification below the textbox, which itself was dynamically created.</p>
  
  <p>normally I'd just put this in my .js.erb</p>
  
  <pre><code>$("#idOfTextbox").append("some waring")
  </code></pre>
  
  <p>but as I mentioned the textbox with id: idOfTextbox was created dynamically and because of that this approach doesnt work.</p>
  
  <p>I read plenty about this and I think I roughly understand the problem, normaly you'd do something like this</p>
  
  <pre><code>$(document).on("click", "#idOfTextbox", function(){
    $(this).append("some warning");
  };
  </code></pre>
  
  <p>but I don't really want to bind it to a specific event, I just want to append the message when the controller renders the .js.erb file</p>
  
  <p>I thought mb something like .on("load", might work, but I had no success so far.</p>
  
  <p>I'd really appreciate any help.</p>