# Run the Script

To use the default options, you only need to add the following to your own existing JS.

**HTML**

```markup
<div class="generator" id="example1"></div>
```

**JS**

```javascript
jQuery(document).ready(function () {
    jQuery("#example1").passwordGenerator();
});
```

That will produce a password generator using the default options. You can modify these options by modifying the script call as seen below:

**JS**

```javascript
jQuery(document).ready(function () {
    jQuery("#example2").passwordGenerator({
		defaultSelectedLength: 5,
		defaultLength: 10,
		numbers: false,
		symbols: false,
		text: {
			length: "Length",
			uppercase: "Uppercase letters",
			lowercase: "Lowercase letters",
			button: "Generate",
			clipboardText: "Copied",
		},
		theme: {
			backgroundColor: "#000",
			color: "#fff",
			border: "none",
			buttonColor: "transparent",
			buttonTextColor: "#fff",
			buttonBorderColor: "#fff",
			lengthBackgroundColor: "rgba(255,255,255,.15)",
			lengthColor: "#fff",
			rangeColor: "transparent",
			rangeTextColor: "#fff",
			rangeBorderColor: "transparent",
			resultsBackgroundColor: "#fff",
			resultsColor: "#2196f3",
			clipBoardColor: "#2196f3",
			item: "#2196f3",
			itemBorder: "#000",
		},
	});
});
```
