Uncaught ReferenceError: $ is not defined but works in another files code example
Example 1: Uncaught ReferenceError: $ is not defined
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="path-para-seu-script"></script>
Example 2: Uncaught ReferenceError: $ is not defined
make sure that your jquery script is being loaded before every other script