Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 447 posts 864 karma points
    Jan 04, 2018 @ 10:35
    J
    0

    Contour onclick action

    I have a Contour form placed on a page. All is working as expected for one particular form.

    I would like to run some Javascript when the submit button is clicked. How could i do this? My attempts so far have resulted in the error "Uncaught TypeError: Cannot set property 'onclick' of null" which i believe means i need to add a onClick event to the button but have no access to this button that i know of?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 26, 2018 @ 23:25
    Dennis Aaen
    0

    Hi J,

    If you don't have solved this yet.

    Have you then tried something like this.

    $("form").submit(function(){
        alert("Submitted");
    });
    

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft