I\'ve been making a javascript function and it\'s getting out of my hands.
The code is this:
$(document).on(\'click\', \'.submit\', function(event) {