I'm using colorpicker Spectrum and what I'm trying to do is to open the colorpicker window when the input is focused. But the problem is that the colorpicker only shows for a split second and then closes. JSfiddle
HTML:
<input type="text">
Javascript:
$('input').spectrum().show();
$('input').focus(function() {
$(this).spectrum('show');
});