I am using a jquery plugin that seems to need color in the "000000" format, but when I do this:
currentcolor = $("#" + dividediting).css("background-color");
I get output like:
rgb(0,0,0)
I am wondering if there is a way to change the way it exits or if I need to use a regular expression to parse the result to get it in the right format .. thanks for any advice
This is a browser that returns the processed and processed color value; it has nothing to do with jQuery as such.
If you need to convert the value, see this question
rgb(x,z,y) CSS is also valid.
rgb(x,z,y)
Source: https://habr.com/ru/post/1755857/More articles:.NET - need 10 points around an ellipse - .netCan I use the Javascript Module template for singletons, as well as for objects that are created several times? - javascriptASP.NET Session and AJAX Timeout - ajaxWhy am I getting this module error: "Cannot find Error.pm in @INC"? - moduleСоздайте ApplicationContext как Spring bean (в другом контексте приложения) - javaWhich browsers allow javascript to be the source of image tags? - javascriptlocalStorage Getting NULL? - javascriptDisassemble PDP-8 - assemblyIs there a reason to do type comparisons this way? - equalshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1755862/websphere-tries-to-load-spring-related-schemas-from-internet&usg=ALkJrhiqCKeJVdwF_gq9LqWorWGB21VftwAll Articles