Events in node js

2

I want to use a function when a button is pressed. In the jade file, I have already put the path where the file with the function is located, but clicking the button tells me that the method is not defined.

What is the folder where should I save my js file or in what way is the function called?

    
asked by FrEqDe 16.11.2016 в 03:24
source

2 answers

1

Your folder is called javascripts and the one you are linking says jacascript.

    
answered by 16.11.2016 / 03:44
source
1

You're missing the one.

asi:

./jacascript/BuscarEstado.js
    
answered by 16.11.2016 в 04:05