My following code is this:
I want to send to the file main.js the data after a user puts in some information in the input and clicks on the submit button. I tried with an ajax() method but it doesn't work or i don't know how to do this. After I send it to the main.js file I want to access that information. Anyone have an idea how to do it?