Skip to content

Commit

Permalink
Improve markdown in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirurg103 committed Aug 8, 2018
1 parent 35c2933 commit b5f2b3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@ World CapybaraSelect2

## Usage

### Select from a container containing the select2 control
### Select from a node containing select2 control

#### Identified by CSS selector
* Identified by CSS selector
```ruby
select2 'Buy Milk', css: '#todo'
```

#### Identified by XPath selector
* Identified by XPath selector
```ruby
select2 'Buy Milk', xpath: '//div[@id="todo"]'
```

#### Or Identified by label
### Select from select2 control identified by label
```ruby
select2 'Buy Milk', from: 'Things to do'
```

#### If you want to search for an option (via Ajax for example)
If you want to search for an option (via Ajax for example)
```ruby
select2 'Buy Milk', from: 'Things to do', search: true
```
Expand Down

0 comments on commit b5f2b3f

Please sign in to comment.