Profile
Achievement
brandonjp's Recent JavaScript SnippetsTagged js
- All /
« Prev 1 Next »
JavaScript
JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position
// 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);"...
0
1859
posted 13 years ago by brandonjp