https://github.com/thebojda/jquery-declarative
Automatically exported from code.google.com/p/jquery-declarative
https://github.com/thebojda/jquery-declarative
Last synced: over 1 year ago
JSON representation
Automatically exported from code.google.com/p/jquery-declarative
- Host: GitHub
- URL: https://github.com/thebojda/jquery-declarative
- Owner: TheBojda
- Created: 2015-05-09T03:23:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T17:29:38.000Z (about 11 years ago)
- Last Synced: 2025-01-12T16:43:05.813Z (over 1 year ago)
- Language: JavaScript
- Size: 250 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jquery-declarative is a simple way to add jQuery controls to your HTML without using any JavaScript. It uses data-control attribute for the definition of the element behavior, which is a standard solution in HTML5 to define custom attributes, and makes your page w3c valid. jquery-declarative is working with every jQuery plugin without using any additional javascript.
In jQuery, you can use something like this to assign a control to an HTML element:
```javascript
$(document).ready(function() {
$('#portfoio').innerfade({
speed: 1000,
timeout: 5000,
...
});
});
```
with jquery-declarative, you can do this on the following way:
```html
```