how to make the input field disable when there is no data in it code example Example: how to fix input field and disabled <input type="text" readonly="readonly" />