When I include an item dynamically in table
, I want to leave the cbempresa
field with readonly=true
and when I have no items in table
it needs to be readonly=false
, logic works when I use disabled
, but% with% do not.
Here's how I'm doing:
$("#cbempresa").prop("readonly", true);
And here is to remove readonly
:
$("#cbempresa").prop("readonly", false)
I thought it was something I was doing wrong, but putting readonly
works.