jQuery 순환 디스플레이와visibility 요소 목록

var goNext = true;
		
_STAGE.passengerInfoArray = [];
for(var i = 0; i < jQuery(".inputName").size(); i++){
	var currObj = jQuery(".inputName").eq(i);
	var visibility = currObj.css("visibility");
	//   visibility visible inherit,       visible
	if(visibility != "hidden"){
		var name = currObj.val();
	if(name == null || name == ""){
		jAnXin.util.showTipMsg("          ,      ");
		goNext = false;
		_PAGE.softKB.setInputObj(currObj);
	} else if(/[0-9]/.test(name)){
		jAnXin.util.showTipMsg("     ["+name+"]    ,     ");
		goNext = false;
		_PAGE.softKB.setInputObj(currObj);
	} else {
		_STAGE.passengerInfoArray.push(jQuery.trim(name));
	}
	}
}


jQuery(".inputName:visible").each(function(i, v){
	var name = jQuery(this).val();
	if(name == null || name == ""){
	jAnXin.util.showTipMsg("          ,      ");
		goNext = false;
		_PAGE.softKB.setInputObj(jQuery(this));
	} else if(/[0-9]/.test(name)){
	jAnXin.util.showTipMsg("     ["+name+"]    ,     ");
		goNext = false;
		_PAGE.softKB.setInputObj(jQuery(this));
	} else {
	_STAGE.passengerInfoArray.push(jQuery.trim(name));
	}
});
if(goNext){
	var roomNum = this.counter._getNum();
	_STAGE.loadPage_book2(roomNum, _ANIMATE_TYPE.none);
}

 
jQuery(".inputName").css("visibility", "visible");
jQuery(".inputName:gt("+(num-1)+")").css("visibility", "hidden").val("");

좋은 웹페이지 즐겨찾기