Copied to clipboard

Flag this post as spam?

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


  • J 351 posts 606 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 4457 posts 17970 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies