Custom Fields
Re-Envisioned
Support MB Views If no uploaded document, change the classname in views

  • Creator
    Topic
  • #31482
    Resolved Kirb
    Participant

    Hi, Metabox. I would like to ask for help. How can I achieve/convert this using JQuery in views? So basically I want to create a statement if there is no document uploaded I want to change a axisting class inside existing HTML element (div).

    {% if post.upload_documents is empty %}
        (I want to target the specific class from HTML element, add class and remove other class)
    {% else %}
        (No action)
    {% endif %}

    Thanks in advanced

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.