By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Regular expression for select all function

P: 1
Hey how to write regular expression to select the contents of textarea(i need to select all the contents in one click)

document.getElementById('text').focus();
document.getElementById('text').select();

Have tried this...but want to write the same thing using regular expression
Mar 31 '14 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
the contents of a text area you can get from textarea_element.value.
Apr 1 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.