在这方面,我希望最终产品能够做些什么。 Saye 我有两个投入:
<form id="builder"/>
<input type="text" name="background_color" />
<input type="text" name="border_color" />
</form>
请说用户对《海尔彩色编码》在“背地-color”投入中的使用投入:#FF8CA9
。 (图色)。 我想在“边界-col”投入中自动添加这种彩色海克斯法的黑暗语句:#D63E64
(dark pink Fair)。
So is it possible to 1) Find darker tone of color that was entered in input "background_color" and generate Hex color code of it and 2) automatically place it in input "border_color" without page refresh?
I m not sure how to explain this in other way, I know it might sound confusing, but if you don t understand some parts please ask me.
<Additional info: 如果需要使用某种javascript,则更可取的办法。