Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanety/jquery-simple-link-form


https://github.com/kanety/jquery-simple-link-form

Last synced: 8 days ago
JSON representation

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


link1
link2
link3


```

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

link1

link1
```

## License

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).