Page 1 of 1

Adding smiles by click into textarea

Posted: 16 Mar 2017, 18:23
by JanMolendijk
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 ?

Adding smiles by click into textarea

Posted: 17 Mar 2017, 07:37
by Admin
Hello,
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:
https://coursesweb.net/javascript/texare ... -smiles_s2

Adding smiles by click into textarea

Posted: 17 Mar 2017, 13:01
by JanMolendijk
Admin you thought off everything great work
i added it & is working thanks