How to toggle Visible/Invisible by button? |
Post Reply |
Author | |
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
Posted: Oct 08 2016 at 3:36pm |
Yes
|
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
I am sorry but I have no idea how to do the custom class.
Is it like this picture? https://drive.google.com/open?id=0B72Ay6Ww5uDcWGRjTTVKMVNnamc |
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
Thanks for your answer! I will try it.
By the way, is it the same way to toggle the READONLY property of text input form? |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
|
P.S.to always hide / show element on click, use hide() / show() instead of toggle()
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
|
Hi,
Into Properties, put a Custom Class "toggle" onto the element to hide, and "toggle-btn" onto the "button" element. Then, add a Code Block (Source) type Javascript: $(function(){ $('.toggle-btn').click(function(){ $('.toggle').toggle(); }); }); |
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
Dear OE Team,
I want to toggle visibility property of Key Input Form eleement from visible to invisible(or vice versa) by click the button. (such as locking mode) How to implement this function? I spent whole two days to figure it out but I couldn't.... I appreciate your kind answer in advance. DJ
Edited by djju1029 - Oct 05 2016 at 10:31pm |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |