how to add html option without value? for example the DISABLED attribute here:
how to add html option without value? for example the DISABLED attribute here:
I am not sure if you really need to do this, you could just write:
echo $formField->activeTextField($model,'attribute',array('disabled' => 'disabled');
You then get <input … disabled="disabled" /> which is the correct syntax.
Correct syntax is only "DISABLED" and disabled with value does not validate.
AFAIK it depends on the doctype. xhtml transitional should be ok with that.
I don't think disabled alone will be valid for XHtml.