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

Default Text

Submit


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!

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

2 Likes

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.