CSS: Make the child element’s height fill the remaining space of the parent element w/o overlapping

overflow: hidden;position: relative;

Advertisements

Javascript capture tab

ex:

 

.keydown(function(e){
   var keyCode 	= e.keyCode || e.which;

   /* --keyCode 9 == tab */
   if (keyCode === 9) {
      if ($(this).val() === '') {
         console.log('resquired');
      } else {
         $(this).css({
            'border':'1px solid #cccccc',
            '-webkit-box-shadow': 'none'
         });
      }
   }
});