Advertisement
ASP_Volume2 Controls/ Forms/ Graphics/ Menus #40009

Check All checkboxes

To check all check boxes on the web page

AI

AI 摘要: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

源代码
original-source
function gCheckAll(chk)
	{
	for (var i=0;i < document.forms[0].elements.length;i++)
		{
			var e = document.forms[0].elements[i];
			if (e.type == "checkbox")
			{
				e.checked = chk.checked
			}
		}
	}
Upload
原始评论 (3)
从 Wayback Machine 恢复