jquery.linkit-test
v1.0.0
Published
a jQuery plugin that adds links to a page
Downloads
4
Maintainers
Readme
LinkIt jQuery Plugin
I created this plugin as a project for a Udemy tutorial titled Projects in JavaScript & jQuery. It is simple, but it does its job.
LinkIt is a simple jQuery plugin used to attach links to HTML pages.
Version
0.1.0
Usage
Add <span></span>
tags to your text, then add the following script to your page, changing the url to your desired location.
<script>
$(document).ready(function() {
$('span').linkIt({
href: 'https://pulamusic.github.io/',
text: 'Click Here'
})
})
</script>
The plugin will add the hyperlink Click Here to the page in place of the <span></span>
tags with the target set to _blank
. You can, of course, change the text of the hyperlink in the short script above.
Vendors
License
MIT License