Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript autocomplete

//A Click on edit button will autofill an input box with the associate table data
document.querySelector('.editButt').addEventListener('click', function(e) {
let tblData = e.target.previousElementSibling;
document.querySelector('#input_box').value = tblData.innerText;
}
 
PREVIOUS NEXT
Tagged: #javascript #autocomplete
ADD COMMENT
Topic
Name
9+7 =