Sayler91,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>$(function() {
var a1 = $('th:contains("Имя")').next().text();
if (a1 === "Иван"){
alert ("Получилось");
}
else {
alert ("не получилось");
}
})
</script>
</head>
<table><th style="width: 150px;">Имя</th><td><div class="model-value">Иван</div></td>
</table>
</html>