1.

What is client side validation? Write a snippet.

Answer»

It is BASICALLY done with the HELP of JavaScript. Code Snippet written below for name FIELD in a form.

Example

FUNCTION validate() {
  var X = document.forms["Form"]["name"].value;
  if (x == "") {
    alert("Name must be filled out");
    return false;
  }
}



Discussion

No Comment Found