-1
I have a file called funcoes.js and another one called eventos.js need the script that is written inside events.js to be executed inside functions.js in another function, but in the order that it is placed inside it.
ex. Function within functions.js
$.fn.test = function(dados) {
function antes(script){}
alert(dados);
function depois(script){}
}
script fired from events.js
$("#botao").test("teste")
antes(alert("antes");)
depois(alert("depois");)
You want to create the jquery function "test" and also the function "before" and "after", and when running the script "events" first it will run "test" which has "before" and "after" and then run again "before" and "after"?
– Wictor Chaves