Why does this form not submit data
- $(document).on("submit","#evaluateform",function(e){
- e.preventDefault()
- //$('#evaluateform').serialize();
- $.ajax({
- method: "POST",
- url: "functions/getRouteEvaluation.php",
- data: $("#evaluateform").serialize()
- })
- .done(function( result ) {
- $("#evaluate-results").html(result);
- });
- })
my form is like this, it's also loaded via another ajax script so loaded dynamically
- <form id="evaluateform">
- <input id="depCode" type="text" placeholder="Departure">