0

I have this set so that it would send a message whenever i click on a in the of yep-table . it's not working for some reason. is there anything wrong with this?

heres the jquery

$("yep-table tbody").on("click", "tr", function(e) {
    console.log("clicked");
});

heres the html

<table class="table" id="yep-table">
                      <thead>
                        <th>Name</th>
                        <th>Cuisine</th>
                        <th>Address</th>
                        <th>Average Score</th>
                      </thead>
                      <tbody>
                          
                      </tbody>
                  </table>

the 's are loaded in using another jquery function but it doesn't matter because even if i set it to click on the , it still doesnt work

Zelkop
  • 109
  • 6

0 Answers0