0

JQuery setting Label Color

asked 2010-09-06 08:37:06 +0800

moloch gravatar image moloch
606 1 13

Hello,
in a Zul page this line does not work! Should anybody tell what is wrong please
i want to change the color of the text for a label

jq('$label1').css(color)

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-09-06 20:20:33 +0800

SimonPai gravatar image SimonPai
1696 1

Hi moloch,

Try

<zk xmlns:w="http://www.zkoss.org/2005/zk/client">
	<label id="label1" value="My Label" />
	<button label="Go" w:onClick="jq('$label1').css('color', '#669966')" />
</zk>

Regards,
Simon

link publish delete flag offensive edit

answered 2010-09-07 09:00:03 +0800

moloch gravatar image moloch
606 1 13

thanks allot it works!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-09-06 08:37:06 +0800

Seen: 2,503 times

Last updated: Sep 07 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More