Problem with Javascript

asked 2021-11-16 17:25:18 +0800

lperez gravatar image lperez

Hello to the community.

I have a problem with implementing an effect in the forms of my application.

I need to apply a class to the parent DIV of an input when the value of said input is not null. It works fine in html and javascript, but I can't get it to work in zk.

Is there a way to do that on zk?

Thanks a lot.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-11-17 14:34:51 +0800

hawk gravatar image hawk
2914 1 5
http://hawkphoenix.blogsp... ZK Team

you can call the methods below to add/remove css class on sclass attribute of a component:

If the above suggestions don't work for your, please provide the related source code or zul.

link publish delete flag offensive edit
Your answer
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




Asked: 2021-11-16 17:25:18 +0800

Seen: 9 times

Last updated: Nov 17

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