I'm using the following to do something when interacting with an input
$('input[name=hello]').on('input', function() {
...
});
Is it possible to trigger what's inside the function on load? I tried...
$('input[name=hello]').trigger();
Or
$('input[name=hello]').keypress();
...and it does not work. The purpose is to run on load whatever is inside teh input event without having to redeclare it.