Aravindhan
Aravindhan

Reputation: 3626

Setting readonly property on editable jquery datatable

I am using jQuery editable datatable. I want some of the fields in the table should be non-editable. So I am using class name readOnly and define is as follows in CSS:

.readOnly {
   readonly: true;
}

But the data field not turned to readonly: data in that column is editable .

How should I overcome this?

Upvotes: 1

Views: 2468

Answers (1)

Aravindhan
Aravindhan

Reputation: 3626

Use class name

           class="read_only"

this will do the trick.

Upvotes: 2

Related Questions