Manually Calling an event function using JQuery
JQuery can trigger a given event; just call $("#somediv").change()
.
I think what you meant to do is define the function outside change(..).
function whatever() { // do something }
$("#somediv").change(whatever);
Then you can call your function elsewhere.
At least that's how I interpreted your question.
Have you tried this?
$("#somediv").change();
Use trigger:
$("#somediv").trigger("change");