Search code examples
htmljoomlavirtuemartw3c-validation

error : Element input with attribute type whose value is button must have non-empty attribute value


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.


Solution

  • 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>