Apr 15, 2014 in Text Editor 3116 views
jQuery URL ColorUP is a jQuery plugin allows it to automatically highlight URLs in textareas like those on Twitter.
1. INCLUDE JS FILES
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="js/jquery.autosize.js" type="text/javascript"></script> <script src="js/jquery.urlcolorup.js" type="text/javascript"></script>
2. HTML
<textarea rows="8" class="form-control theSelector"></textarea>
3. JAVASCRIPT
$(document).ready(function() { $("textarea").urlcolorup(); });
Tagged with:
jquery url colorup
url colorup
automatically highlight urls
highlight urls
textarea
twitter
detect urls
url in textarea
Related Articles