I have an MVC project and in my View I'm trying to create a "Select All" and "Rest" button that will either check all or clear all RadioButtons on the page. I'm getting an error in the Dev Tools that says "Uncaught ReferenceError: $ is not defined". Just for testing purposes I'm first just trying to kick off an Alert but continue to get the error. I don't see what the problem would be.
Here is my button on the page:
<button type="button" id="btnReset" class="btn btn-default btn-sm">
<span class="fa fa-refresh" aria-hidden="true"></span> Reset
</button>
This is the jQuery I have at the bottom of the page.
<script type="text/javascript">
$(document).ready(function(){
$("#btnReset").click(function () {
alert("clicked");
//$('input:radio').attr('checked',false);
});
});
</script