$(document).ready(function() { var someFunc = function() { alert('something'); }; }); function CallMe() { $(function() { someFunc(); }); }