Page 1 of 1
how to copy and paste from a form
Posted: Wed Oct 08, 2008 6:23 am
by swetha
Code: Select all
<body>
<div align="center">
<textarea name="txt1" rows="2" cols="20" ></textarea><br/><br/>
<input type="submit" name="submit1" value="select all">
<input type="submit" name="submit2" value="copy"></div>
</body>
</html>
assume i have the above code. i need to select all the contents within the (dynamic)textarea when i click on "select all" button.the command "ctrl + c" needs to be executed when i click on "copy" button.can this be done through php or can it be done only through javascript?any help is appreciated.
Re: how to copy and paste from a form
Posted: Wed Oct 08, 2008 7:13 am
by papa
Re: how to copy and paste from a form
Posted: Wed Oct 08, 2008 7:39 am
by aceconcepts