// You need to remove data-toggle="modal" data-target="#myModal" and trigger your modal manually, you could use this in your code
//First initialize your modal to false so that it doesn't open up
$("#myModal").modal({ show: false});
// in submit method write below code
$("#myModal").modal("show");