After a post with "$.ajax()
", I sometimes receive an exception from the server. You can see a part of the returned HTML below:
<html>
<head>
<title>MyMessage</title>
<style>
/* ... */
</style>
</head>
<body bgcolor="white">
<span>
<H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>MyMessage</i> </h2>
</span>
<b> Exception Details: </b>System.Exception: MyMessage<br><br>
<!-- ... -->
[Exception: MyMessage]
lambda_method(ExecutionScope , ControllerBase , Object[] ) +159
...
</body>
</html>
I'd like to get the value of the title tag ("MyMessage") How can I do this with jQuery?