In Jquery i’d like to disable any plugin I want by changing a variable name. However the following code doesnt work
function disablePlugin(functionName) {
$('#divID').functionName('disable')
}
disablePlugin('sortable');
any ideas about how I manage to do this?
This is how you would do that:
This works because
someObject.foois the same thing assomeObject['foo']