Script not working in IE7

Script not working in IE7

New to jquery.  Have this simple script working in every browser but IE.  Checkbox that onchange toggles the enabled state of a form submit button.

This is in head tag.
    1. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    this is in body

    1. <script type="text/javascript">
    2. $("input[name*='submit']").attr('disabled', true);

    3. function toggleStatus() {
    4.     if ($('#toggleElement').is(':checked')) {
    5.         $("input[name*='submit']").removeAttr('disabled', false);
    6.     } else {
    7.  $("input[name*='submit']").attr('disabled', true);
    8.     }   
    9. }
    10. </script>