[Solved] Javascript not working when jquery is added


you forgot a )

$(function () {

    $('.submit').on('click', function () {
       ...
    })   // <---
});

if you properly indent the code blocks and if you look on the javascript console, this kind of errors become easier to be detected. Just adopt an indent style and write code adhering to it.

2

solved Javascript not working when jquery is added