Skip to content

Commit

Permalink
update README for PR kenkeiter#117 and issue kenkeiter#115 merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjha committed Jan 7, 2014
1 parent 2d3067e commit 049db63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ new Skeuocard($("#skeuocard"), {
});
```

#### Turn off Focusing the Input by Default

By default, when Skeuocard is initialized, the input field will be focused. If you don't want this to happen (for example, if the skeuocard element is positioned below the fold and you want to prevent the browser from scrolling there), then pass `dontFocus: true` as an initialization option.

```javascript
new Skeuocard($("#skeuocard"), {
dontFocus: true
});

```

#### Providing Initial Values

Sometimes you'll need to pre-fill credit card information when you load the page. To do so, you can simply provide a `value` attribute for your form fields (or `<option selected ...>`, in the case of a `<select>`), and Skeuocard will pick up your initial values when instantiated.
Expand Down

0 comments on commit 049db63

Please sign in to comment.