简体   繁体   English

显示/隐藏href链接

[英]Show / Hide href link

I am working on a web application. 我正在开发Web应用程序。 I have 4 a href menus (Eg.- Menu1 Menu2 Manu3 Menu4 ). 我有4个href菜单(例如-Menu1 Menu2 Manu3 Menu4)。 I want to check the condition if customer is free then the menu "Menu4" should be invisible and if customer is paid then they can access or see all above menus (Eg.- Menu1 Menu2 Manu3 Menu4). 我想检查客户是否有空的情况,那么菜单“ Menu4”应该是不可见的,如果客户付款了,那么他们可以访问或查看上述所有菜单(例如-Menu1 Menu2 Manu3 Menu4)。

You should have the customer's status either in a Session or Get parameter, and then set the menu's CSS to "visibility: visible;" 您应该在Session或Get参数中具有客户的状态,然后将菜单的CSS设置为“ visibility:visible;”。 or "visibility: hidden;". 或“可见性:隐藏;”。

If your links are server side, you can set their visible property as true or false. 如果链接是服务器端的,则可以将其可见属性设置为true或false。 Please check that link HyperLink 请检查该链接超链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM