Please See the image for clear understanding of problem:
.
There is focusout
event on boxes. While typing in the box, if a user clicks on buttons the click
does not work as focus out called immediately and button moves up a bit when focusout
from the box. I just came to know in advance how to fire click event of buttons just after focusout
. Here is sample code on focusout
.
$(document).on("focusout", ".fn-enlargeTextarea", function(event) {
var optionNumber = ($(this).attr('id').replace('1option','')).trim();
$('#1option'+optionNumber+'_counter').remove();
$(this).removeClass('textarea-height01').addClass('textarea-height02');
});