Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<script type="text/javascript">
var clicks = {{ clicks }};
function onClick() {
                            clicks += 1;
                            document.getElementById("clicks").innerHTML = clicks;
                   }

                    /script>


What I have tried:

I get the "clicks" from database and print it out on html, then I change it and now want to save the new "clicks" back to my database.
Posted
Comments
[no name] 19-Oct-16 9:10am    
"save the new "clicks" back to my database", okay so go ahead and do that. Since you didn't ask a question to tell us about a problem, you have permission to proceed.
Manh Nguyen Huu 19-Oct-16 9:15am    
I mean how can I save it?
Richard MacCutchan 19-Oct-16 11:49am    
Why have you tagged this Python, when it is obviously Javascript?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900