Some times we need to call a function after chceking that it is exist there or not. This is very simple in jquery. Use that function name in if and if is exist then it will go in if block.
Example :
function temp(){
// Sample Code
}
if(temp){
temp();
}
Like this temp function execute only when it is awailable.
No comments:
Post a Comment