Is it correct to call a regular JavaScript function in a jQuery script or should it be external (it will only be access/used by the jQuery script)? I know that it works but I want to make sure that I am using best practice. For example:
$(function(){
$('.click1').click(function(){
dofunction();
}
$('.click2').click(function(){
dofunction();
}
function testing(grid_array){
alert('function works!');
}
});