make a function run after an element is created jquery code example Example: document jquery $(function(){ // equal to $( document ).ready(function() { });