Skip to content
Javascript library to create Custom Select with input type radio
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
example.html
exampleVanilla.html
helios.customSelect.css
helios.customSelect.js
helios.customSelect.vanilla.js
package.json

README.md

Helios Custom Select

I'm working in vanilla version

if you are interested in contribute, take a look inside the file helios.customSelect.vanilla.js

Usage Vanilla Version

Include the plugin file

<script src="helios.customSelect.vanilla.js"></script>

Create an element to wrap the select

<div class="mySelectVanilla"></div>

Call the plugin with or without options:

var mySelect = new heliosCustomSelect(".mySelectVanilla", {
  list: ["Option1", "Option2", "Option3"],
  defaultOption: "Filter:"
});

Check the example working here:.

Check full example's source code.

Usage JQuery Version

Include jQuery:

<script
  src="https://code.jquery.com/jquery-3.3.1.slim.js"
  integrity="sha256-fNXJFIlca05BIO2Y5zh1xrShK3ME+/lYZ0j+ChxX2DA="
  crossorigin="anonymous"
></script>

Include plugin's CSS and JS:

<link rel="stylesheet" href="helios.customSelect.css" />
<script src="helios.customSelect.js"></script>

Call the plugin:

$("#mySelect").customSelect({
  border: "1px solid #cecece",
  defaultText: "Escolha uma opção",
  list: ["Opção 1", "Opção 2"]
});

Check full example's source code.

To-Do

  • Options Documentation
  • Settings with data-*
  • Add dropdown icons
  • Validations
You can’t perform that action at this time.