Skip to content

Commit 10e60f5

Browse files
update readme
1 parent bfb5574 commit 10e60f5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pnpm add calendarify
5252
```javascript
5353
import Calendarify from "calendarify"
5454

55-
const calendarify = new Calendarify('.input-element', { ...options })
55+
const calendarify = new Calendarify('.date-input', { ...options })
5656
calendarify.init() // Initialize calendarify
5757
```
5858

@@ -70,6 +70,8 @@ and then include `calendarify.iife.js` just above your closing `</body>` tag...
7070

7171
```html
7272
<body>
73+
...
74+
<input type="text" class="date-input" id="date-input" />
7375
...
7476
<script src="https://unpkg.com/calendarify@latest/dist/calendarify.iife.js"></script>
7577
</body>
@@ -78,7 +80,7 @@ and then include `calendarify.iife.js` just above your closing `</body>` tag...
7880
If you downloaded the package via zip file from Github, these files are located in the dist folder. Otherwise, you can use the CDNs as shown in the [Installation](#installation).
7981

8082
```javascript
81-
const calendarify = new Calendarify('.input-element', { ...options })
83+
const calendarify = new Calendarify('.date-input', { ...options })
8284
calendarify.init() // Initialize calendarify
8385
```
8486

0 commit comments

Comments
 (0)