Save custome HTML actions

Confluence User - 15 Jul, 2015

Dear support

 

I have created a form with costume HTML sections, my problem is i cannot save the actions that are made on those section whenever i submit the form or save

 

Lets say i have a button that would be colored green once action is done but when the form is submitted it will be gray again  

below is my html code

<!DOCTYPE html>
<html>
<body>
<input type="button" id="myButton" name="myButton" value="Complete" />
<script >

   var Icount1=0;
$("#myButton").click(function(){

     if (Icount1==0)
        {
            Icount1=1;
               this.style.background = '#00FF00';
                color();

                  }

       });

function color(){

}

</script>
</body>
</html>

 

 

forms

1


15 Jul, 2015
confluenceUser
confluenceUser

After you submit, the page refreshes.

Your click event function will be triggered but the page refreshes and reset everything.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print