>>> select.bind('change', function() {
>>> if (confirm('Are you sure?')) {
>>> cachedOnChange();
>>
>> The function uses 'this', which is not "available" anymore
>> when I call it...
You just need to get the "this" object set, which you can do this way:
select.bind('change', function() {
if (confirm('Are you sure?')) {
cachedOnChange.apply(this);
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
