I'm having a problem that if I click and trigger this function the focus appear before the image.
I can write and click to add the image bue if I continue writing it will be before the image xd so I need it to focus after the image, is that possible?
message = "<img src='emotions-fb/" + chatboxtitle +".png' title='" + chatboxtitle + "' class='embtn'/>";
$("#chatFrom .chatboxtextarea").append(message);
$('#chatFrom .chatboxtextarea').focus();