Posted By

ryarwood on 07/31/10


Tagged


Versions (?)

Clear Text in Form Field on Focus


 / Published in: JavaScript
 

  1. function onprodClear() {
  2. if (document.getElementById("address").value == "Enter Your Zip Code") {
  3. document.getElementById("address").value = "";
  4. } else if (document.getElementById("address").value == "") {
  5. document.getElementById("address").value = "Enter Your Zip Code";
  6. }
  7. }

Report this snippet  

You need to login to post a comment.