Skip to content

Commit

Permalink
Explain vat-taxrate DOM element in README
Browse files Browse the repository at this point in the history
  • Loading branch information
orottier committed Jan 14, 2016
1 parent 07e2514 commit af2cf48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ So your form will look like this:
<a name="extra-fields" />
### Extra fields

To display the live tax calculation, you can use the classes `vat-subtotal`, `vat-taxes` and `vat-total` on any DOM element and VAT Calculator JS will automatically set the inner HTML content for you.
To display the live tax calculation, you can use the classes `vat-subtotal`, `vat-taxrate`, `vat-taxes` and `vat-total` on any DOM element and VAT Calculator JS will automatically set the inner HTML content for you.

Example:

```html
<strong>Subtotal</strong>: € <span class="vat-subtotal"></span>
<strong>Tax rate</strong>: <span class="vat-taxrate"></span>%
<strong>Taxes</strong>: € <span class="vat-taxes"></span>
<strong>Total</strong>: € <span class="vat-total"></span>
```
Expand Down

0 comments on commit af2cf48

Please sign in to comment.