-
FEATURED COMPONENTS
First time here? Check out the FAQ!
![]() | 1 | initial version | |
How can I make a button change its image by clicking on the same button?
![]() | 2 | No.2 Revision |
How can I make a button change its image by clicking on the same button?
<zk>
<window >
<button id="boton" image="/imagen/likecora.png" label="change color" onClick='Clients.evalJavaScript("cambiar()")' >
<attribute name="onClick"><![CDATA[ boton.setImageContent("/imagen/likerojo.png");]]>
</attribute>
</button>
</window>
</zk>