Skip to content

Javascript checkProvince

James Cobban edited this page Apr 14, 2021 · 1 revision

function checkProvince()

Up: Common Form Handling

Source: /jscripts/CommonForm.js

The function checkProvince 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 the subdomain portion of a domain identifier.

// in initialization
      inputelement.checkfunc       = checkProvince;

Next: function checkOccupation()

Clone this wiki locally