Manually Calling an event function using JQuery

Viewed 30219

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.

7 Answers
<script type="text/javascript">
window.onload = function () {
    $("#somediv").change();
}
</script>

i think this what you want to do .

Related