For some reason this is not working. Instead it thinks it should check the checkbox rather than find out if the box is checked. Can anyone see where I have gone wrong.
if ($('#OPT2checked').attr('checked','checked')) {
var OPT2checked = 'checked="checked"';
} else {var OPT2checked = ''};
Any ideas?
Marvellous,
Try this 🙂