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.

change the opacity of a text
#1
hello 
I used this JS code to change the objects to read only and change the opacity, but it didnt change the opacity of a text
how to make it work in text also
Code:
$(function(){
  grp.listen('32/1/1', function(object) {
     if (object.value == true ) {
        $(".lockbyknx").addClass("item-read-only");
         $(".lockbyknx").find('img').css("opacity", 0.5);
     } else if (object.value == false ) {
        $(".lockbyknx").removeClass("item-read-only");
         $(".lockbyknx").find('img').css("opacity", 1);
     }
  }, true); // set to true to send on same value
});
Best Regards,
Reply


Messages In This Thread
change the opacity of a text - by khalil - 17.11.2021, 12:05
RE: change the opacity of a text - by admin - 18.11.2021, 09:15
RE: change the opacity of a text - by khalil - 18.11.2021, 11:50
RE: change the opacity of a text - by admin - 18.11.2021, 12:02
RE: change the opacity of a text - by khalil - 18.11.2021, 13:23
Direct Input - by sjfp - 08.12.2021, 13:01
RE: change the opacity of a text - by admin - 08.12.2021, 13:09

Forum Jump: