Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/jquery-simple-link-form
https://github.com/kanety/jquery-simple-link-form
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/jquery-simple-link-form
- Owner: kanety
- License: mit
- Created: 2019-06-16T13:00:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T04:33:13.000Z (over 5 years ago)
- Last Synced: 2024-12-25T04:04:43.566Z (23 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-simple-link-form
A jquery plugin for form submittion through link.
## Dependencies
* jquery
## Installation
Install from npm:
$ npm install @kanety/jquery-simple-link-form --save
## Usage
Build html as follows:
```html
```
Then run:
```javascript
$('#link').simpleLinkForm({
form: '#form'
});
```### Options
Set selectors and confirmation:
```javascript
$('#link').simpleLinkForm({
...
link: 'a[href]',
submit: 'input:submit',
confirm: 'Are you sure?'
});
```Set options per link:
```html
link1
```## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).