Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathvik Ponangi committed Apr 27, 2015
1 parent 1b8610b commit 38f12da
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ jQuery.print is a plugin for printing specific parts of a page
## Usage

Include it in your HTML after importing jQuery, like:

```html
<script type="text/JavaScript" src="path/to/jquery.print.js" />
```
Use it like:
Expand All @@ -15,10 +18,13 @@ Use it like:
or
```js
$.print("#myElementId" /*, options*/);

```
You can submit the options object like:
```js
$("#myElementId").print({
globalStyles: true,
mediaPrint: false,
Expand All @@ -30,7 +36,8 @@ You can submit the options object like:
manuallyCopyFormValues: true,
deferred: $.Deferred()
});

```
Currently this plugin supports the following options:
####globalStyles
Expand Down

0 comments on commit 38f12da

Please sign in to comment.