So, I have my MVC 3 view (Razor), with a form. Now it loads up the template which loads up all the scripts it uses, I put this at the top of the form:
<script type="text/javascript">
$(function () {
$('#App_RunFromUSB').change(function () {
alert($('#App_RunFromUSB').val());
});
});
</script>
Which basically means that if the checkbox on the form is checked then alert the user of its value.
Simple, so why does it keep showing true in the alert box....
I put it in a fiddle and it does the same thing, JS Fiddle