This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

javascript to check css element
#3
The whole script can be written much shorter, but for this to work the object value must be binary (true/false).
Code:
$(function(){
   grp.listen('1/1/1', function(object, state) {
      $(".hidebyknx").toggleClass("hide", object.value);
   }, true);
});
Reply


Messages In This Thread
RE: javascript to check css element - by admin - 05.07.2021, 08:11

Forum Jump: