Adding smiles by click into textarea

Topics related to client-side programming language.
Post questions and answers about JavaScript, Ajax, or jQuery codes and scripts.
User avatar
Posts: 259
Location: Holland Rotterdam

Adding smiles by click into textarea

I have this textarea

Code: Select all

<textarea name="details" rows="5" cols="50" class="form-control"></textarea>
Now i have a page with all smilies & i wanna place the code from eatch smilie into my textarea with one mouse-click... How can i do this ?

To add such function to a textarea you have to make a javascript script that adds the smile code when click on its image.
See the script from this page: ... -smiles_s2

Admin you thought off everything great work
i added it & is working thanks

Similar Topics