renathy Posted December 1, 2011 Report Share Posted December 1, 2011 Man nepieciešams colorpickers. Es mēģinu izmanto šo te - http://www.eyecon.ro/colorpicker/#implement $('#colorpickerField1').ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { $(el).val(hex); $(el).ColorPickerHide(); }, onBeforeShow: function() { $(this).ColorPickerSetColor(this.value); }, onHide: function() { return 'test'; } }) .bind('keyup', function() { $(this).ColorPickerSetColor(this.value); }); Bet man ir vēl <div id="test">BLABLA</div> un pēc colorpicker-a azivēršans vajaga nomainīt šī te div-a krāsu. nesanāk. Quote Link to comment Share on other sites More sharing options...
0 marcis Posted December 2, 2011 Report Share Posted December 2, 2011 onSubmit: function(hsb, hex, rgb, el){ $(el).val(hex); $(el).ColorPickerHide(); $("#test").css("background", "#"+hex); } Quote Link to comment Share on other sites More sharing options...
Question
renathy
Man nepieciešams colorpickers.
Es mēģinu izmanto šo te - http://www.eyecon.ro/colorpicker/#implement
Bet man ir vēl <div id="test">BLABLA</div> un pēc colorpicker-a azivēršans vajaga nomainīt šī te div-a krāsu. nesanāk.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.