I want to convert plaintext to link for an input I have.
The HTML code is:
<input type="text" value="http://www.test.com" id="url">
So each time this input with this id is on the page converted to clickable link to open in new page.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this:
Place that in a document ready handler or in a script block at the end of the body.
You didn’t say what you wanted the text of the link to be so I’ve just repeated the url as shown in this working demo: http://jsfiddle.net/khJx2/1/
Specifying the “target” attribute as “_blank” will open the link in a new page (or tab, depending on the browser). Remove that to have it open in place of the current page.