be why here hava a get request be sent when i click the delete button :     <script src="static/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
    	$(function() {
    		var ids = ${requestScope.ids};
    		for (let i = 0; i < ids.length; i++) {
    			$("#delete-" + ids[i]).click(function() {
    				var path="employees/"+ids[i];
    				$("#form").attr("action", path).submit();
    			});
    		}
    	});
    </script>

    <body>
    
    			<c:forEach items="${requestScope.employees}" var="employee">
    				<tr>
    					<td>${employee.id }</td>
    					<td>${employee.name }</td>
    					<td>${employee.email }</td>
    					<!--进行判断:0为男性,1为女性-->
    					<td><c:if test="${employee.gender==0}">男</c:if> <c:if
    							test="${employee.gender!=0}">女</c:if></td>
    					<td>${employee.department.deptName }</td>
    					<td><button id="delete-${employee.id }">DELETE</button></td>
    					<td><button>UPDATE</button></td>
    				</tr>
    			</c:forEach>
    		</table>
    	</c:if>
    	<form method="post" id="form">
    		<input type="hidden" name="_method" value="DELETE" />
    	</form>
    
    </body>
    </html>
when i click the delete button ,i hope the form be post,it do,but i see the network the a get request also be send,where is the get reqeust be sent?
[![enter image description here][1]][1]
help me plz


  [1]: https://i.stack.imgur.com/4mdPJ.png