0
일부 jquery 메서드에 문제가 있습니다. 일부 체크 상자의 경우 체크/체크 표시를 해제하여 원하는대로 수행 할 수 있습니다.내 jquery 함수가 Firefox에서 실행되지 않는 이유
이 방법은 Chrome과 IE에서는 완벽하게 작동하지만 최신 FF에서는 작동하지 않습니다.
jQuery(function() {
jQuery(':checkbox').change(function() {
var counter = jQuery('.count').text();
var thisCheck = jQuery(this);
if (thisCheck.is(':checked')) {
counter++;
//apply green color to the selected row
jQuery(this).closest('tr').addClass('checked');
} else {
counter--;
//remove green color to the selected row
jQuery(this).closest('tr').removeClass('checked');
}
jQuery('.count').html(counter);
//enable export button when there are selected emails to be exported
if (counter > 0) {
jQuery(".exportButton").removeAttr("disabled", "");
} else {
jQuery(".exportButton").attr("disabled", "disabled");
}
});
});
기본적으로 간단히 말해서 발생하지 않습니다 ... 디버그가 첫 번째 줄 (함수 선언 또는 다른 줄도 포함)을 포착하지 않습니다. 내가 jQuery(document).ready(function ($) {
내부 (function
선언없이)이 자바 스크립트를 이동하면
모두
예, 나는jQuery(document).ready(function ($) {
전에 jQuery.noConflict();
를 사용합니까 ... 너무 파이어 폭스에 좋은 일이 일어나는 이유를 알고 있습니까?
수정 사항은 Chrome에서 작동하지만 FF에서는 작동하지 않습니다. –