5

I am using joomla 2.5.8 with virtuemart 2.0.6. Upon w3 validation i get following error's :

Element input with attribute type whose value is button must have non-empty attribute value <input type="button"class="quantity-controls quantity-minus" />. Element input with attribute type whose value is button must have non-empty attribute value.

Kromster
  • 7,181
  • 7
  • 63
  • 111
Jag
  • 123
  • 3
  • 14

2 Answers2

8

You must provide a value attribute for your button.

<input type="button" id="myButton" value="Click Here" />

if you don't want to display anything in it then use value="&#160;"

Marcio Mazzucato
  • 8,841
  • 9
  • 64
  • 79
Salam
  • 101
  • 3
2

You can try to use a <button> tag.

<button type="button" id="myButton">Click</button>

It is a valid markup for HTML5. If you need this button submit a form you can change the type to submit.

<button type="submit" id="myButton">Click</button>
Marcio Mazzucato
  • 8,841
  • 9
  • 64
  • 79