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>          

Comments

Popular posts from this blog

Sahari

[[ ROYAL CAR ]] CHANGE PASSWORD - DYNAMIC BANNER - MULTIPLE IMAGE - LOGIN LOGOUT BACK BUTTON MIDDLEWARE STOP - MAIL DIRECTLY WITH FEEDBACK WITH SAVE IN SQL DB - ADMIN REPLY EXISTING MAILS - DYNAMICALLY CSS CHANGE

Linux Terminal