I have this code
<div class="error">Login failed </a>
url: 'myurl',
type: 'POST',
data: JSON.stringify(Login),
contentType: "application/json",
Question: Check if API response is false display error message div if API response is true proceed it next.