It is necessary to do so that the user on the site could enter data into the database. Created just such a table:
With the jQuery library made data entry into the table, here's the code
<script type="text/javascript"> $(function() { $('td').click(function(e) { //ловим элемент, по которому кликнули var t = e.target || e.srcElement; //получаем название тега var elm_name = t.tagName.toLowerCase(); //если это инпут - ничего не делаем if(elm_name == 'input') {return false;} var val = $(this).html(); var code = '<input type="text" id="edit" value="'+val+'" />'; $(this).empty().append(code); $('#edit').focus(); $('#edit').blur(function() { var val = $(this).val(); $(this).parent().empty().html(val); }); }); }); $(window).keydown(function(event){ //ловим событие нажатия клавиши if(event.keyCode == 13) { //если это Enter $('#edit').blur(); //снимаем фокус с поля ввода } }); </script> How can I make it so that data can only be entered in certain cells? Now it turns out like this:

It is necessary to make the column “No.”, “Date / Time” and the first row cannot be changed, and the rest is possible. Is there any such possibility? I think that everything is simple, but I don’t shave in js. JQuery-3.3.1.js library