If I have below button :
<button type="button" id="send_email" class="btn btn-primary" onclick="sendEmail();">Send</button> So, which is better calling JS function or using click event in separate JS file
function sendEmail(){ ..... some code ..... } OR
$("#send_email").click(function(){});