I have an input (at chat) and emoticons.
I need to set when some body click on emoticon, to add its code to the input(without deleting the current text)
For example I have written:
“Hello ” I press the smile image and the input must become
“Hello :):” !!! NOT SUBMITED still at the input field!
$("img.emots").click(function() { var emots=$(this).attr("title");
$("#message_text").append(emots); });
I use this but its not working (its putting the emoticon between input tags <input>HERE</input>
What I need to do ??? 🙁
1 Answer