Я уже собрал некоторый jQuery, который будет отображать и скрывать эту новую область содержимого над ячейкой таблицы, но CSS неверен, и ввод коробки опускаются вниз... Область содержимого, о которой я говорю, — это DIV, добавляемый плагином jQuery с классом inputbanner.
Код: Выделить всё
(function($) {
$.fn.inputmenu = function() {
function createInputMenu(node) {
$(node).bind('focus', function() {
$(this).parent().toggleClass('highlight');
$(this).prev('div.inputbanner').toggle();
});
$(node).bind('blur', function() {
$(this).parent().toggleClass('highlight');
$(this).prev('div.inputbanner').toggle();
});
$(node).parent().prepend('
[img]../../Content/Images/arrow_left_active.gif[/img]
 
[img]../../Content/Images/arrow_left_inactive.gif[/img]
');
}
return this.each(function() {
createInputMenu(this);
});
}
})(jQuery);Код: Выделить всё
.inputbanner {
background-color: Orange;
position: absolute;
top: -20px;
display: none;
}Код: Выделить всё
SWR: 1123 My Biggest Project
$().ready(function() {
$('.timebox').inputmenu();
});
Подробнее здесь: https://stackoverflow.com/questions/115 ... of-textbox
Мобильная версия