127
rated 0 times
[
128]
[
1]
/ answers: 1 / hits: 16154
/ 11 Years ago, tue, september 24, 2013, 12:00:00
I am trying to call the nested function is not working
Here is what I tried jsfiddle
Script:
(function( $ ){
$.fn.investPage = function() {
function setupFCConfig(){
$('.nestedFunction').click(function(){
alert('setupFCConfig func()');
});
}
$(.edit).on('click', function(){
alert('edit click func()');
});
$(.cancel).on('click', function(){
alert('cancel click func()');
});
$(.checkout).click(function(){
alert('checkout click func()');
});
};
})( jQuery );
$.fn.investPage();
$.fn.investPage.setupFCConfig();
More From » jquery