<script>
var count_security = 0;
#set($count_security = 0)
function increment() {
count_security++;
#set($count_security = $count_security + 1)
alert(count_security);
alert($count_security);
}
</script>
<html>
<input type="button" onclick="increment" />
</html>
When I call the above function on click of the button the "$count_security
" variable is incrementing only once. Its not incrementing further.
Please help if I am doing something wrong.