how to wait code run in page ready then do function using jquery code example
Example: jquery ready
// jQuery document ready function
$(function() {
// do stuff
});
// jQuery document ready function
$(function() {
// do stuff
});