skip to Main Content

Javascript – How to send data from the drop-down list to the server?

I am developing a web application in Go. I have a drop-down list, it is formed from a template. <div class="dropdown"> <button onclick="myFunction()" class="dropbtn"> Удалить услугу</button> <ul id="myDropdown" class="dropdown-content"> {{range .}} <li>{{.Id}}</li> {{end}} </ul> </div> <script> function myFunction() { document.getElementById("myDropdown").classList.toggle("show");…

VIEW QUESTION
Back To Top
Search