so I have this function defined in javascript..
function varReplace(formid)
{
if (formid.factsc[0].checked == true) {
formid.adddetails.value == "it's working";
}
else {
formid.adddetails.value == "it's not working";
}
}
where I want to give adddetails a certain value if the factsc in html is clicked "yes".
On the html side, I call the function like this..
onsubmit="return varReplace(this.form)"
But it doesn't work.. any help would be much appreciated! Thanks in advance!
CTRL+SHIFT+J.