[Html-widget] Read-only attribute?
Adam Sjøgren
asjo at koldfront.dk
Wed Jun 21 18:21:26 CEST 2006
On Wed, 21 Jun 2006 16:06:25 +0100 (BST), Michael wrote:
> I could do this by hand in the code by choosing between a Textfield or a
> Span, but it would be much nicer if I could just add a "->readonly(1)"
> to the element and have it Do The Right Thing, taking care of outputting
> the label and the read-only value in a suitable fashion.
Setting the HTML attribute disabled="disabled" on the element could
perhaps be a solution¹?
Best regards,
Adam
¹ <http://www.w3.org/TR/html4/interact/forms.html#adef-disabled>
--
"we have stairs in our house." Adam Sjøgren
asjo at koldfront.dk
More information about the Html-widget
mailing list