Skip to content

berumen/tShift

Repository files navigation

tShift, What is this?

tShift is a jquery plugin that allows you to use shift selection in your checkboxes.
It was built using the jQuery library.

Author

Copyright (c) 2023 Alfredo Berumen Saldivar
http://berumen.xyz
@berumen

How to use

Include tShift plugin in your website directory then load files in the section of your HTML document. Don't forget to add the jQuery library version >= 1.12.4.

<head>
	<script src="https://code.jquery.com/jquery-3.6.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/jquery.tshift.min.js"></script>
</head>

Just put your checkbox list inside a div with an id, use whatever name you wish for the id. You can use nested divs inside your main div. For example:

Select 1
2
3 4 5

Trigger the plugin using the following code:

<script>
    $(document).ready(function() {
    	$('#my_id').tshift();
    });
</script>s

Example

For a live demonstration visit: tShift demo

Or visit the official web page: Official site

License

Licensed under MIT license

Bug tracker

Have a bug? Please create an issue on GitHub at https://github.com/berumen/tShift/issues

About

A simple way to use shift selection for your checkboxes

Resources

Stars

Watchers

Forks

Packages

No packages published