Hello,
I have a table like below.
I show #block or #villa rows with the Select option.
Example: How to prevent the input in the #block line from being posted when I submit when the #villa line is shown?
You would add the disabled attribute to the input fields. When you make the row visible, you would remove the disabled attribute from the corresponding input.
If you are only making one of the two fields visible, you should simply put both of them in the same <td></td> and put the id=‘blok’ or id=‘villa’ in the input fields.