textarea’s rows, and cols attribute in CSS
<textarea rows=”4″ cols=”50″></textarea> It is equivalent to: textarea { height: 4em; width: 50em; } where 1em is equivalent to the current font size, thus make the text area 50 chars wide. see here.
<textarea rows=”4″ cols=”50″></textarea> It is equivalent to: textarea { height: 4em; width: 50em; } where 1em is equivalent to the current font size, thus make the text area 50 chars wide. see here.
Had the same problem, came up with this easy solution. It’s even working recursive: $(document).mouseup(function(e) { var container = $(“YOUR CONTAINER SELECTOR”); // if the target of the click isn’t the container nor a descendant of the container if (!container.is(e.target) && container.has(e.target).length === 0) { container.hide(); } });