EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on March 16, 2023, 10:21:37 AM



Title: easyui-linkbutton + hidden
Post by: rezzonico on March 16, 2023, 10:21:37 AM
Is it possible to hide a easyui-linkbutton ?

The following code doesn't works:
<a href="javascript:void(0)" class="easyui-linkbutton" hidden>Hello</a>

Regards
Miche


Title: Re: easyui-linkbutton + hidden
Post by: jega on March 16, 2023, 02:40:47 PM
Hi.

You can use <a href="javascript:void(0)" class="easyui-linkbutton" style="display:none">Hello</a>

To show linkbutton from code, give it an id

<a id="linkButton1" href="javascript:void(0)" class="easyui-linkbutton" style="display:none">Hello</a>

Unhide = $('#linkButton1').css('display','');
Hide = $('#linkButton1').css('display','none');


Title: Re: easyui-linkbutton + hidden
Post by: rezzonico on March 17, 2023, 12:22:12 AM
Thanks !

Regards
Miche