I am using farbtastic color picker and working fine but now I need to change the text color using this plugin.
This is what I have now:
This is my code:
With this the text color is not changing and not showing me the hex value too.
<script type="text/javascript">
$(document).ready(function () {
$('#colorpicker').farbtastic(function (color) {
$("#colorpicker").style("color", color);
});
});
</script>
Text input control:
<input type="text" id="color" name="color" value="#123456" />
Color picker placeholder:
<div id="colorpicker"></div>
This is my text input:
<input id="Text1" type="text" />
Now if I write anything and change the color from color picker I need to change the text forecolor from “Text1” input.
This seems to work:
JS Fiddle demo.