For the purpose of debugging you may want to print values to Google Chromes javascript console (Ctrl+Shift+J).
Below is the format you would use:
<script> var valOne = 'One'; console.dir ("The output of ValOne is: " + (valOne)); </script>
The above would print out this to the javascript console:
The output of ValOne is: One
Add new comment