Giter Site home page Giter Site logo

select-beauty's Introduction

select-beauty

JQuery Select Package for Make Select Option more Beauty

Quick Setup

Easy to use this package, first for all you have this plugin script and JQuery. After that insert all assets to your code

Style

<link rel="stylesheet" href="assets/select-beauty/dist/css/select-beauty.css">

JavaScript

<script src="assets/select-beauty/dist/js/jquery.min.js"></script>
<script src="assets/select-beauty/dist/js/select-beauty.stable.min.js"></script>

Example Select

<select name="work-condition" id="work-condition" class="form-control">
  <option value="1" icon="iw-way">Remote Location</option>
  <option value="2" icon="iw-crane">Work From Height</option>
  <option value="3" icon="iw-scope">Field Visit</option>
  <option value="4" icon="iw-excavator">Active Machinery</option>
</select>

Initiate Script

var beauty = new SelectBeauty({
  el: '#work-condition', // element with only id selector
  placeholder: 'Select Something...', // placeholder for button
  length: 5, // max length to show the selected items
  max: 10, // max length to select the item
  selected: [1,3,7,17] // set default selected value
});

Other Functions

Using select-beauty package, we have some function to make more easy for using this script

Functions Description
instanceName.reload() This can use for reloading the beauty-select
instanceName.getTemporaryData() For creating new temporary data from select option. And use the instanceName.tempData to get the temporary data as object
instanceName.selected Will return value of the select option as array

Demo

Select Beauty

select-beauty's People

Contributors

satriaajiputra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hinimajesty

select-beauty's Issues

Select defult value

How can i select defult values ?
I used selected on my options of selectbox and didnt answer

Is this project active?

Hi everyone.

I want to help, but I want to know if this project is active. Is this project active?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.