[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Помогите javascript код перевести в jquery
Oggy
помогите пожалуйста перевести етот javascript код в jquery

document.getElementById("send3").disabled = "true";
document.getElementById("send3").style.display = 'none';
document.getElementsByClassName('modal-body')[1].style.display = 'none';
document.getElementsByClassName('modal-header')[1].style.borderBottom = 'none';
rooor
не проверял, может чего не так, не заморачивался особо
document.getElementById("send3").disabled = "true";
$('#send3').attr('disabled', 'disabled');

document.getElementById("send3").style.display = 'none';
$('#send3').css('display', 'none'); или $('#send3').hide();

document.getElementsByClassName('modal-body')[1].style.display = 'none';
$('.modal-body').css('display', 'none'); или $('.modal-body').hide();

document.getElementsByClassName('modal-header')[1].style.borderBottom = 'none';
$('.modal-body').css('borderBottom', 'none');
Oggy
привет, спасибо за ответ.
когда ввожу в консоли firebug

$('#send3').hide();

или

$('#send3').css('display', 'none');


получаю TypeError: $(...) is null
почему ? подскажи пожалуйста
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.