[Solved] click function not working on class


In line number 7 you have done a mistake change

//para.innerHTMl
para.value

Why because you are trying to access the textarea element which is having a attribute value not innerHTML to get the data. You can use innerHTML for ‘div’,’p’ tags etc.

1

solved click function not working on class