Possible Duplicate:
jQuery test for whether an object has a method?
I want to set if Function Exists before Calling javascript can you help me how do this and apply on this script
$(document).ready(function() {
$(".cs-text-cut").lettering('words');
});
I’m assuming that you’re wanting to check and make sure that
letteringexists, try this:http://api.jquery.com/jQuery.isFunction/
Here’s an example: