M
Marc Dimmick
I am trying to check that a check box has been check and if it has then
display the label in the email I generate.
I am creating a function chkboxvalidate (chk,label) I am just not sure how
to pull the value in the check box and the label given to the check box..
I have the following:
function chkboxvalidate (chk,label);
{
var sSystem = document.getElementByID("chk");
if (chk.checked)
var sSystem = label.innerText;
return sSystem;
}
Just not really understanding how to get the function to work. I have
created email buttons which generate an email base on the content of the
form and based on the boxes selected to try and display their lables. Anyone
got some pointers??
display the label in the email I generate.
I am creating a function chkboxvalidate (chk,label) I am just not sure how
to pull the value in the check box and the label given to the check box..
I have the following:
function chkboxvalidate (chk,label);
{
var sSystem = document.getElementByID("chk");
if (chk.checked)
var sSystem = label.innerText;
return sSystem;
}
Just not really understanding how to get the function to work. I have
created email buttons which generate an email base on the content of the
form and based on the boxes selected to try and display their lables. Anyone
got some pointers??