[Solved] JavaScript function not being called onclick [closed]


I don’t have enough reputation to comment, but there’s some issues with your code at first glance:

  1. It’s <script> not <srcipt>
  2. Your updateCart function has no end curly bracket (})

3

solved JavaScript function not being called onclick [closed]