我有一个文本框,有人可以写一些文本发送给我。我想在页面上放置一些按钮,如“!”,“XD”和“#”。当有人点击时,例如,“!”按钮,“!”应该插入到文本框中。我怎样才能做到这一点?是否有可能做出这样的事情?
<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">
忘了你的代码? –
请随时添加您的代码 – Bharat