php - Enclose the value of input button with p -
how can enclose value of button p? trid add <p>
tag doesn't work displayed text.
i want enclose value can add psuedo element on button value. or if possible select value via css directly if adding html on value not possible can solution this.
this one:
<input type="submit" class="button refreshbtn" name="update_cart" value="<?php _e( '<p>update cart</p>', 'woocommerce' ); ?>" />
original code:
<input type="submit" class="button refreshbtn" name="update_cart" value="<?php _e( 'update cart', 'woocommerce' ); ?>" />
html not allowed in attributes value, e.g. value="submit"
valid example.
if want use html formatting button, can use anchor
tag , use javascript submit form (or other action) on click of anchor
.
<a id="btnsubmitform" class="button refreshbtn"><span>update cart</span></a>
Comments
Post a Comment