0

Here I'm trying to select button whose class is add and then change its parent elements inner html to hello but this code dose not work for some reason can someone please guide me.

$(document).on('click','.add',()=>{ 
    $(this).parent().html('hello')
});
freedomn-m
  • 27,664
  • 8
  • 35
  • 57
Sanket
  • 31
  • 5

0 Answers0