Skip to content

Commit

Permalink
Merge pull request osmlab#26 from fansanelli/form-reset-v2
Browse files Browse the repository at this point in the history
fixes osmlab#24 also for input fields.
  • Loading branch information
fansanelli authored Apr 5, 2020
2 parents fd50869 + e2ddd69 commit eda825a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,19 @@ $("#collect-data-done").click(function() {
});

function clearFields(){
$("#name").empty();
$("#phone").empty();
$("#website").empty();
$("#social").empty();
$("#opening_hours").empty();
$("#name").val("");
$("#phone").val("");
$("#website").val("");
$("#social").val("");
$("#opening_hours").val("");
$("#category").select2("val", "");
$("#categoryalt").empty();
$("#address").empty();
$("#categoryalt").val("");
$("#address").val("");
$("#addressalt").val("");
$("#payment").select2("val", "");
$("#wheel").select2("val", "");
$("#linkcoords").empty();
$("#delivery").empty();
$("#linkcoords").val("");
$("#delivery").val("");
}


Expand Down

0 comments on commit eda825a

Please sign in to comment.