-2
Hello, I am programming my site on C9.io and I am using a cont shown here at this link: How to add +1 in a counter variable to each click?
However on C9.io in the line of Js appears $ is not definied, fix it or add global $. When I shoot the $ does not work and when I keep n of certain. How could I fix?
var count = 0;
$('#addCount').click(function(){
alert(count);
count++;
<input type=button id=addCount value="Adicionar Count">
FOLLOWS THE LINK OF THE SITE https://forum-alldispor.c9users.io/index.html#/topics
could put snippets of codes?
– Sampaio Leal
Ready! Note: I am using Angularjs
– Mayla Campos
and jQuery??? $ n and jQuery?
– Sampaio Leal
no, the $ is after var Count =0; which is giving not definied
– Mayla Campos
Do not mix
AngularJS
andJQuery
. Better try to do it with just theAngularJS
or just with theJQuery
– Sorack