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

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -