steps to mark a table row as read only and remove the select box based on the value of a field using

I have a read only table and check box.  when I click on check box that particular row should be enabled for editing.

What is the use case here? Why not set up two separate tables, one with a model where the condition is in place for the specific value and the another model where the condition is the opposite? That would make one of them easily read only and the others easily edited.