js select all

js selects all, inverts, and does not select, and so on according to the code.

//js select all inverse selection code
function inTurnSelect() {
		var CheckBox = $("#titleInfo input[name='titleInfo']");
		for (i = 0; i < CheckBox.length; i++) {
			if (CheckBox[i].checked == true) {
				CheckBox[i].checked = false;
			} else {
				CheckBox[i].checked = true;
			}
		}
	};



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325525696&siteId=291194637
Recommended