{script} $("#insert-video-wrapper").on("submit", function(e){ e.preventDefault(); _scope.success && _scope.success({ "link" : $(this).find("[name = link]").val(), }); }); {/script}