jquery - Highlight Text When Clicked -


How can I highlight all the text within a text box when I clicked using jQuery?

  & lt; Input type = "text" value = 
& lt; Script & gt; Click $ ("# user") (function () {$ ("# user"). Focus (); $ ("# user"). Select ();}); & Lt; / Script & gt;

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -