I don’t have enough reputation to comment, but there’s some issues with your code at first glance:
- It’s 
<script>not<srcipt> - Your updateCart function has no end curly bracket (
}) 
3
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:
<script> not <srcipt>})3
solved JavaScript function not being called onclick [closed]