I need to call a function in the following fashion:
var f = 'fadeOut';
$(v).f(s, function(){
$(v).css('visibility', 'hidden').css('position', 'absolute');
});
Is this possible to do simply?
I need to call a function in the following fashion:
var f = 'fadeOut';
$(v).f(s, function(){
$(v).css('visibility', 'hidden').css('position', 'absolute');
});
Is this possible to do simply?
Yes
var f = 'fadeOut';
$(v)[f](s, function(){
$(v).css('visibility', 'hidden').css('position', 'absolute');
});