daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function checkForm() {
  2.     var w = document.input_data;
  3.     if (!f.who.value || !f.what.value ||
  4.         f.start_year.value < 2010 || f.start_month.value < 1 || f.start_day.value < 1 || f.duration.value < 1 ||
  5.         f.where.value === 'other' && !f.where_o.value ) {
  6.         alert('Please make sure that all fields are filled in with proper values.');
  7.         return false;
  8.     }
  9.  
  10.     return true;
  11. }
RAW Paste Data
Top