How to include an icon on a Stripes button using jQuery

I am using Stripes and jQuery along with the generated jQuery UI theme. I want to insert <stripes:form>

in a div and then style <stripes:button>

to dispatch with one of the icons from the theme.

This works: (but obviously doesn't bind to Stripes)

<button id="save" class="ui-state-default ui-corner-all">
    <span class="ui-icon ui-icon-check"></span>
</button>

      

This does not work:

<stripes:button name="save" class="ui-state-default ui-corner-all">
    <span class="ui-icon ui-icon-check"></span> 
</stripes:button>

      

The malfunction is giving me a nicely styled button with a span tag as text.

Any suggestions? Is it possible?

+2


source to share


1 answer


The guys at Stripes always say that people just use a simple HTML ol tag when Stripes tags cause any kind of grief. This is not how Stripes does it for you here, especially if you are not using mapping from action / field name to properties (message directory entries).



+1


source







All Articles