image for site

Using jQuery for HTML Visibility in Zendesk

Learn about using jQuery versus vanilla JavaScript for controlling HTML visibility in Zendesk.

Do I need jQuery to hide or show HTML in Zendesk?

While jQuery is not required to hide or show HTML in Zendesk, it can be used if preferred.

The provided code examples use vanilla JavaScript, but if you want to use jQuery, you must import it into your theme. This can be useful for those more comfortable with jQuery or when dealing with complex DOM manipulations.


More related questions

How can I hide or show HTML based on a user's role in Zendesk?

You can hide or show HTML based on a user's role in Zendesk by using specific JavaScript and CSS code. This involves checking the user's role and displaying the corresponding HTML elements. To implement this, you need to place the code below the…

How can I hide or show HTML based on a user's group in Zendesk?

To hide or show HTML based on a user's group in Zendesk, you can use a similar approach as with user roles, but with a focus on groups. You'll need to modify the JavaScript to check the user's group and display the appropriate HTML. Start by…

What are the limitations of hiding HTML based on user roles in Zendesk?

Hiding HTML based on user roles in Zendesk has some limitations, particularly regarding sensitive information. Users can still view the full text by using the 'View Page Source' function in their web browser. Therefore, this method is not suitable…

Can I hide HTML for multiple user roles in Zendesk?

Yes, you can hide HTML for multiple user roles in Zendesk by adding additional logic to your JavaScript code. You can modify the if statements to check for multiple roles and display the corresponding HTML elements. This allows you to customize…

How can I customize the Help Center theme in Zendesk?

Customizing the Help Center theme in Zendesk involves editing the template files and using CSS and JavaScript to modify the appearance and behavior. You can start by accessing the theme editor and making changes to the HTML, CSS, and JavaScript…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites