The given Ajax code is not working with if statement.Please explain about these

Default Text


when i type the above code as given in javascript module of training,it doesnt work.
but when i remove the if conditions it works properly.i want to know the reason

it works,if the conditional statement is not present…
Please Help!

In your if condition statement Change the code (this.readyState)… there is s instead of S.


i am also not getting results, please help me

Your line document.getElementById… is not in one line. Can you put the .first_name; continuing it above?

Your window looks like it has space on the right side. Try once.