• Resolved damian0021

    (@damian0021)


    Hey,
    I need help modifying the plugin.

    The plug-in works as needed after throwing shortcod [wpcm_cars] – it shows all the cars added in the database.

    In the listing I added a new class .hide for which I gave the CSS display: none; – The listing has stopped showing at the start.

    And now I added the following code:

    Before modification:
    <input type = “submit” value = “<? Php esc_attr_e (‘Show Results’, ‘wp-car-manager’);?>” />
    After modification:
    <input type=”submit” onclick=”myFunction()” value=”<? Php esc_attr_e (‘Show Results’, ‘wp-car-manager’);?>” />

    Java Script:

    <script>
    function myFunction() {
    var element = document.getElementById(“myDIV”);
    element.classList.remove(“hide”);
    }
    </script>

    I can see in FireBug that the class at the time of the click is removed but after a while it is added again.

    Can you help me somehow?

    • This topic was modified 6 years, 11 months ago by damian0021.
Viewing 1 replies (of 1 total)
  • Plugin Author Barry Kooij

    (@barrykooij)

    Hey there,

    Sorry for not responding sooner. I’m closing this issue because it’s over 1 month old. If the issue still exists, please create a new ticket.

    Thank you.

    Kind Regards,

    Barry Kooij

Viewing 1 replies (of 1 total)
  • The topic ‘Remove class’ is closed to new replies.