Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (33 sloc) 1.21 KB
<script type="text/javascript" src=""></script>
This page creates the html-friendly string for a link with a title and a url.
<li>Fill out the form below and click the button. </li>
<li>If the link is messy, clean up first by using the <a href="">URL decoder</a>.</li>
<li>Copy and paste the result inside the text area after you are done.</li>
Title: <input type="text" id="title1" size="100"/><br/>
Link: <input type="text" id="link1" size="100"/><br/>
<button id="b1">Send to Text Area</button>
<p id="result1"></p>
<textarea rows="20" cols="80"></textarea>
<script type="text/javascript">
// alert('<a href="'+$("#link").val()+'">' + $("#title").val()+"</a>");
$('#result1').text('<li><a href="'+$("#link1").val()+'">' + $("#title1").val()+"</a></li>");
var res1='<li><a href="'+$("#link1").val()+'">' + $("#title1").val()+"</a></li>";
// $('textarea').text(res1);
}); // doc ready