Only after something is typed inside the textbox, The button should be enabled.

Copy the following code in the notepad and save it as test.htm and then run it.

Ajax code for Check Availability of User ID