How to extract response from server in jquery ajax...along this a put my code, here a want to do like this. using the user name and password "login_check.php" check the database and echo the value "login successful" or invalid username and password or something other like that.But when i alert the response from "login_check.php" showing html contents like that.. i want to check only the response and depending on the do something like redirect or show error message .. How i can do..? if any one help, this is very useful to me...How to extract response from server in jquery a