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.
- <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
this is in body
- <script type="text/javascript">
- $("input[name*='submit']").attr('disabled', true);
- function toggleStatus() {
- if ($('#toggleElement').is(':checked')) {
- $("input[name*='submit']").removeAttr('disabled', false);
- } else {
- $("input[name*='submit']").attr('disabled', true);
- }
- }
- </script>