Help solve the issue of data transmission from one function to another



  • <input type='text' onkeyup = "seach('val1', 'val2')">
    function seach (id, column) {
            document.onkeyup = function (e) {
                alert (id);
            }
    }
    

    Question of how to put id on screen in another function



  • Maybe I didn't understand the question, but it's working without dancing with the bubble and stunning global eve. document.onkeyup

    function seach(id, column) {
      alert(' val1 = ' + id + ' val2 = ' + column);
    }
    <input type='text' onkeyup="seach('val1', 'val2');">




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2