«

»

Oct 20

Print this Post

Automatic Check Boxes Function (isChecked)

Pass either TRUE or FALSE to this function and it will return either ” checked” or “”. I use this within loops to automatically check HTML checkboxes from a data set.

function isChecked(input)
	if input then
		isChecked = " checked"
	else
		isChecked = ""
	end if
end function

Permanent link to this article: https://www1.wperry.net/code/ischecked/

Leave a Reply

Your email address will not be published. Required fields are marked *