Guest User

Guest User

  • Tech Writer
  • 31
  • 22.1k

Onclick property to img created inside JavaScript function

May 8 2017 6:40 AM
cell3.innerHTML = "<img src = 'Edit-icon.png' height='20' width='20' onClick = 'passValuesToInput("+id+");'>";
 
What is wrong with this line of code? Why the function is not being called and parameer is not being passed? 

Answers (1)