function validateField(inputTag, isZero) {

	var isError = true;

	if(inputTag.length < 1) {
		alert("At least you have to add your skills");
		return false;
	}

	for (i=0; i < inputTag.length; i++) {
	    var x = inputTag[i].value;
	    if (x==null || x=="") {
	    	if(isError) {
	    		console.log("tag name in errors. name=" + inputTag[i].name);
	    		inputTag[i].focus();
	    		inputTag[i].scrollIntoView();
	    	}
	    	inputTag[i].style.border = "1px solid red";
	    	// inputTag[i].style.cssText = 'border:1px solid red !important';

	        isError = false;
	    } else {
	    	inputTag[i].style.border = "";
	    }

	    if (isZero && x=="0") {
    		console.log("0 is error. name=" + inputTag[i].name);
    		inputTag[i].focus();
    		inputTag[i].scrollIntoView();
	    	inputTag[i].style.border = "1px solid red";
	    	isError = false;
	    }

	}

	return isError;
}
/*
 * Validate input or select tags
 * isZero if can check 0
 */
Validate input or select tags
isZero if can check 0
Validate input or select tags isZero if can check 0
function validateField(inputTag, isZero) {
	var isError = true;
	if(inputTag.length < 1) {
		alert("At least you have to add your skills");
		return false;
	}
	for (i=0; i < inputTag.length; i++) {
	    var x = inputTag[i].value;
	    if (x==null || x=="") {
	    	if(isError) {
	    		console.log("tag name in errors. name=" + inputTag[i].name);
	    		inputTag[i].focus();
	    		inputTag[i].scrollIntoView();
	    	}
	    	inputTag[i].style.border = "1px solid red";
	        isError = false;
	    } else {
	    	inputTag[i].style.border = "";
	    }
	    if (isZero && x=="0") {
    		console.log("0 is error. name=" + inputTag[i].name);
    		inputTag[i].focus();
    		inputTag[i].scrollIntoView();
	    	inputTag[i].style.border = "1px solid red";
	    	isError = false;
	    }
	}
	return isError;
}
function validateField ( inputTag , isZero ) { var isError = true ; if ( inputTag . length < 1 ) { alert ( "At least you have to add your skills" ) ; return false ; } for ( i = 0 ; i < inputTag . length ; i ++ ) { var x = inputTag [ i ] . value ; if ( x == null || x == "" ) { if ( isError ) { console . log ( "tag name in errors. name=" + inputTag [ i ] . name ) ; inputTag [ i ] . focus ( ) ; inputTag [ i ] . scrollIntoView ( ) ; } inputTag [ i ] . style . border = "1px solid red" ; isError = false ; } else { inputTag [ i ] . style . border = "" ; } if ( isZero && x == "0" ) { console . log ( "0 is error. name=" + inputTag [ i ] . name ) ; inputTag [ i ] . focus ( ) ; inputTag [ i ] . scrollIntoView ( ) ; inputTag [ i ] . style . border = "1px solid red" ; isError = false ; } } return isError ; }
Validate input or select tags
 isZero if can check 0
Validate input or select tags isZero if can check 0
// inputTag[i].style.cssText = 'border:1px solid red !important';