i’m a beginner to java script. can anyone help me in this with this.
if iam the user i want to insert a username in the textbox and it check whether it exist (i can do this in php code) or not…if the username exist it focus on the
username textbox.
There’s a problem that us JavaScript authors face that you may not be aware of, and that is that we need to ensure that things keep working even when JavaScript is not available.
To achieve that, you start from the very bedrock basics. A form submits to a php page, and that php page performs the checks, and updates the page.
Once those basics are in place, you can extract the part that performs the checks to a separate file so that it can be included, and also so that you can send an AJAX request to that same file.