switch(iwfAttribute(el, 'type')){\r
case 'checkbox':\r
case 'radio':\r
- if (iwfAttribute(el, 'checked')){\r
- val = iwfAttribute(el, 'value');\r
+ if (iwfAttribute(el, 'checked') || el.checked){\r
+ val = iwfAttribute(el, 'value') || el.value;\r
}\r
break;\r
case 'button':\r