Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

josh-oiknine/data-dash-jquery-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

====================================================================================
Data Dash jQuery Plugin
====================================================================================

Created by Josh Oiknine. @joshOiknine

====================================================================================

Thank you for downloading the Data Dash jQuery Plugin.


Instalation & usage:

<html>
<head>
<script src="/js/1.5/jquery.min.js"></script>
<script src="/js/datadash.jquery.js"></script>
<script>
$(function(){
	alert( $('#element').datadash('title') ); // alerts "my value"
	$('#element').datadash('title', 'new value') ); // sets title to "new value"
});
</script>
</head>
<body>
	<div id="element" data-title="my value"> ... </div>
</body>
</html>

====================================================================================

Note when calling the datadash function you don't need to include the data- portion
of the attribute in order to save time and code.

====================================================================================

GPL license:
http://www.gnu.org/licenses/gpl.html

MIT license:
http://www.opensource.org/licenses/mit-license.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published