HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Search results

  1. L

    Open in new window

    The action attribute in the <form> tag is meant to specify where the form data should be sent after submission. It's not meant for JavaScript. What you're trying to do with the method should be in a JavaScript function, not inside the action attribute. Here's a quick fix for ya...
  2. L

    My code won't output anything...

    The issue is in the printReceipt function. You are trying to calculate the subtotal but due to the usage of commas instead of addition (+), only the last value (i.e., item3.totalPrice()) is being assigned to the subtotal variable. This makes your subtotal incorrect function printReceipt(item1...