wpColorPicker is not a function!
i tried to use iris color picker in my plugin admin area but when i implemented i’m getting this error- TypeError: $(…).wpColorPicker is not a functionCode- function sam() { wp_enqueue_style( ‘wp-color-picker’); wp_enqueue_script( ‘wp-color-picker’); } add_action( ‘admin_enqueue_scripts’, ‘sam’ ); <!–HTML–> <input type=”text” value=”#bada55″ class=”ir” /> <!–SCRIPT–> <script type=”text/javascript”> jQuery(document).ready(function($){ $(‘.ir’).wpColorPicker(); }); </script> Why am I getting … Read more