Reputation: 5653
I've been searching for a way to make a textarea type inside of itself. Unfortunately, even with some google searching, I still don't have a clue? Do you guys know where to start with this?
http://lmgtfy |dot| com is an example, but I'm not sure if they use some other technique...
Upvotes: 1
Views: 2175
Reputation: 2196
The lmgtfy people are simply using javascript to change the value of the input. Here is a simple jsfiddle showing the same thing:
Upvotes: 3
Reputation: 13115
LMGTFY uses javascript. If you visit the site using chrome or some other browser with a debugger, you should be able to pause javascript execution and check out how they do it, then roll or copy your own version.
In Chrome, the pause button is under the Scripts area. Their bundle.js
files appears to host the JS you are looking for, it is around 1000 lines of code, but you should be able to see the few functions you need to borrow their implementation.
Hope this helps.
Upvotes: 1