Функция выдает одинаковый вывод в обоих случаях, что я делаю не так?
function showToast() {
if (document.getElementById("latitude").innerHTML == "") {
window.plugins.toast.showWithOptions({
message: "Geofence perimeter has been correctly set. \n \n Hence you may now proceed with Geofence Activation",
duration: "short",
position: "top",
}, );
} else if (!document.getElementById("latitude".innerHTML == "")) {
window.plugins.toast.showWithOptions({
message: "Geofence perimeter cannot be set due to missing configuration \n \n Kindly update all fields accordingly",
duration: "short",
position: "top",
}, );
}
}