I’ve a textarea that has keyup event to show a preview of rendered input. However, I want to display the same preview immediately after the element is loaded.
$('textarea[name="ay[description]"]').on('keyup', function(e){
The simplest of all is to initiate .trigger('keyup') at the end of the declaration. However, isn’t there event such as load, onload or ready that I’ve missed under different name?
The onLoad event is known as “load” but it only fires for certain objects / elements (iframes, window, document).
http://api.jquery.com/load-event/