Jquery Plugin
Color Picker
Bootstrap 4 Color Picker Plugin- ColorPalettePicker.js
Bootstrap 4 Color Picker Plugin- colorPalettePicker.js : If you have a bootstrap website and you want to add color picker feature then in this post I am going to share simple Bootstrap 4 Color Picker Plugin colorpalettepicker.js.
- 4.5/5.0
- Last updated 09 September, 2022
- By Admin
This jQuery plugin uses of Bootstrap 4 dropdown component to create a simple color picker for your website. The Bootstrap 4 color picker enables users to select a color from a predefined color palette.
Integrate Bootstrap 4 Color Picker
Libraries
Include all the bootstrap library after that add colorpalettepicker.js on page.
HTML
Create a DIV container which display color picker toggle.
JS
Call the plugin to activate a default color picker inside the DIV container.
$('#colorpalettediv').colorPalettePicker({ lines:4, onSelected: function(color){ alert(color); } });
I hope it can help you. Download source code here.