Javascript checkOccupation - jcobban/Genealogy GitHub Wiki

function checkOccupation()

Up: Common Form Handling

Source: /jscripts/CommonForm.js

The function checkOccupation may be assigned as the value of the checkfunc attribute of an input element. It is called when the value of the element is changed to validate that the value contains only characters that are valid in an occupation.

// in initialization
      inputelement.checkfunc       = checkOccupation;

Next: function checkAddress()