Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 226
Jag Avatar asked Apr 29 '13 07:04

Jag


2 Answers

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;"

like image 76
Salam Avatar answered Nov 15 '22 07:11

Salam


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>
like image 31
Marcio Mazzucato Avatar answered Nov 15 '22 09:11

Marcio Mazzucato