Using textarea type fields

Using textarea type fields

yishayhyishayh Posts: 108Questions: 17Answers: 0

Hi Allan,

please excuse me if this is a stupid question, I looked for it before asking.
We initialize the editor in one of our tables with
new $.fn.dataTable.Editor(editorOpt);
where editorOpt.fields contains a field which definition is {type: textarea}
When the user clicks the table he gets an text area input field, but there is no way he can save the information (clicking enters just adds new line - which is great), how can the user save the information?

Thanks,
Yishay

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    Answer ✓

    I presume you are using inline editing here? You need to also have it show a button in the inline form so the user has something to submit with. A return is perfectly valid in a text area, hence the need for a button.

    Allan

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    Answer ✓

    This example shows the use of a submit button with inline editing.

  • yishayhyishayh Posts: 108Questions: 17Answers: 0

    That did the work.
    Thanks,
    Yishay

This discussion has been closed.