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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -