IN LOOP INPUT TYPE DATA GET
{% for i in con: %} <td class="Test"> <input type="text" id="search" name="{{i.name}}" onkeydown="search(this)"> </td> </tr> {% endfor %} </table> <script> function search(ele) { if(event.key === 'Enter') { alert(ele.value); console.log(ele.name); } } </script>