1.0.0 • Published 6 years ago

jquery.linkit-test v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

jQuery

License

MIT License