Regular expression for select all function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sahanag
    New Member
    • Mar 2014
    • 1

    Regular expression for select all function

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

    document.getEle mentById('text' ).focus();
    document.getEle mentById('text' ).select();

    Have tried this...but want to write the same thing using regular expression
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the contents of a text area you can get from textarea_elemen t.value.

    Comment

    Working...