Shadowing Posted May 2, 2012 Share Posted May 2, 2012 hey guys im trying to add this into my function where i can change the variable effect to hide or show just a small short cutout example of a larger function idk might not be possible function move_object(effect) { $('.'+tag).+effect+(0,function(){ Link to comment https://forums.phpfreaks.com/topic/261967-changing-a-jquery-function-name-dynamically/ Share on other sites More sharing options...
nogray Posted May 2, 2012 Share Posted May 2, 2012 try $('.'+tag)[effect](0,function(){ Link to comment https://forums.phpfreaks.com/topic/261967-changing-a-jquery-function-name-dynamically/#findComment-1342428 Share on other sites More sharing options...
Shadowing Posted May 3, 2012 Author Share Posted May 3, 2012 Hey nogray thanks alot man. Thats what I needed Link to comment https://forums.phpfreaks.com/topic/261967-changing-a-jquery-function-name-dynamically/#findComment-1342754 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.