Hi. I have a checkbox, that if checked, I want to put up an alert box saying the record will be deleted. Conversely, if the user then unchecks the checkbox, I don't want any message to show up Here's what I have.
On my checkbox, I'm doing an "onclick = ConfirmChoice(this);"
My script:
function ConfirmChoice(x)
{
checked = x.value
if (checked == '')
{
alert("boo");
}
else
{
alert("This record will be deleted when Detail Settings are saved.")
}
}
So far, it always does the 2nd part of the else statement.
Any help is much appreciated. Thanks.
On my checkbox, I'm doing an "onclick = ConfirmChoice(this);"
My script:
function ConfirmChoice(x)
{
checked = x.value
if (checked == '')
{
alert("boo");
}
else
{
alert("This record will be deleted when Detail Settings are saved.")
}
}
So far, it always does the 2nd part of the else statement.
Any help is much appreciated. Thanks.

Comment