Popular Posts
Word break tag : <wbr/> (HTML5) The  HTML  <wbr>  tag  is  used  defines  a  potential  line  break  point  if  needed.  This  stands  for  Word  BReak. This  is  u... CTE, recursive search WITH DepartmentSearch(DeptID, DeptParent, DeptName, OuID) AS (     -- 找出簽核者所屬部門     SELECT d.DeptID, d.DeptParent, d.DeptName, d.OuID     FR... Create web service client cross SSL with eclipse When creating web service cross SSL using eclipse, it occuss some error like below: And it can't build the client source from this wa...
Stats
Check for multiple textbox size
var JSUtil = {
    IsTextCountsInRange: function(obj, min, max) {
        if (obj) {
            if (typeof (obj) == "string") {
                var targetElement = document.getElementById(obj);
                if (targetElement && targetElement.value) {
                    return targetElement.value.toString().length >= min && targetElement.value.toString().length <= max;
                } else {
                    return false;
                }
            } else if (typeof (obj) == "object" && obj.value) {
                return obj.value.toString().length >= min && obj.value.toString().length <= max;
            }
        } else {
            return false;
        }
    }
}