readonly fields in Editor without an input element

readonly fields in Editor without an input element

ThomDThomD Posts: 334Questions: 11Answers: 43
edited September 2015 in General

When I set a field on a form to type:readonly, is there a way to get that to render as just text instead of a box that makes the user think it is editable? Also, is there a way to combine textarea with a read only attribute?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,686Questions: 1Answers: 10,500 Site admin
    Answer ✓

    This plug-in will display the text (value) without an input element.

    Also, is there a way to combine textarea with a read only attribute?

    Yes, you can use the attr option noted in the textarea documentation to pass in attributes such as readonly. An example in the documentation shows the use of placeholder but readonly could also be used.

    Allan

  • ThomDThomD Posts: 334Questions: 11Answers: 43

    Thanks. I missed that plug in.

This discussion has been closed.