I want to know if their is an option to call a function that is already assigned to a JQuery event.
For example:
$("#somediv").change(function() { //do something });
I want to be able to manually call that function that was originally assigned to the "somediv" element.
Thanks.
Use trigger:
$("#somediv").trigger("change");
<script type="text/javascript">
window.onload = function () {
$("#somediv").change();
}
</script>
i think this what you want to do .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With