PHP Classes

File: vendors/mjolnic-bootstrap-colorpicker/docs/includes/examples/04_events.hbs

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/mjolnic-bootstrap-colorpicker/docs/includes/examples/04_events.hbs   Download  
File: vendors/mjolnic-bootstrap-colorpicker/docs/includes/examples/04_events.hbs
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 263 bytes
 

Contents

Class file image Download
<a href="#" class="btn btn-default" id="cp4">Change background color</a> <script> $(function () { $('#cp4').colorpicker().on('changeColor', function (e) { $('body')[0].style.backgroundColor = e.color.toHex(); }); }); </script>