JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position


/ Published in: JavaScript
Save to your folder(s)

// big thanks to these tips for giving me code to steal: http://bit.ly/bundles/brandonjp/9

/*
* USAGE: give your HTML textarea or text input element an ID
* give your button an onClick="insertThisInThere(text2insert, theInputIDwhereItGoes);"
*
* EX:
*
*/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.