In my text input field, users can type messages to send to me. I'd like to add buttons on the page with symbols like "!", "XD", and "#". When someone clicks on a button, such as the "!" button, that corresponding symbol should be inserted into the text box. How can I achieve this functionality?
<textarea data-typeid="18" data-price="15" data-pricetype="fixed" data-index="0" name="ywapo_textarea_18[0]" cols="20" rows="4" maxlength="" class="ywapo_input ywapo_input_textarea ywapo_price_fixed"></textarea>
<input onclick="InsertText('18','Ş')" value=" Ş " type="button">
<input onclick="InsertText('18','Ş')" value=" @ " type="button">
<input onclick="InsertText('18','Ş')" value=" # " type="button">