Fuction call - Syntax problem

Fuction call - Syntax problem

Hi there,

I do have a function that triggers once a select box option has been selected. Now I would like to preselect options on load.

I am stuck in getting the function call rigth. Currently this is the code that triggers upon change of the element:


$(this).change(function () {


How can I rewrite this to trigger on change AND on manual call (somthing similar to this pseudo code:


if ($('#province_select').val OR $this.change){


Thank you for any help![/code]