Question: I have jquery function:

```
function handleSplittingPrices() {
    var customerId = $(this).val();
    loadSplittingPrices(customerId);
}

```

I want to execute it with elem as "this":

```
var elem=$('...');
handleSplittingPrices() <-- here elem will be this

```

How can I do it?

Answer: 
You're looking for the [`call` method](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call):

```
handleSplittingPrices.call(elem);

```

Note that `elem` is a jQuery object, not a DOM element, so you won't need to call `$` inside the function.
Use [`call`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call):

```
handleSplittingPrices.call(elem);

```