如何将jscolor选择器设置为bs按钮
how to set jscolor chooser to bs button
我想使用 jscolor
选择器作为 bootstrap 按钮元素。我从数据库中获取颜色代码。输入元素根据颜色选择器显示正确的颜色。但是 bs 按钮总是显示 ffffff
代码。任何人都可以向我解释以下代码的错误。
<button type="submit" class="jscolor"><%=pc.getName()%></button>
<input type="text" class="jscolor" value=<%=pc.getName()%>>
尝试更改按钮 class、
<button class="jscolor {value: '<%= pc.getName()%>'}"></button>
看看下面的例子link。
我想使用 jscolor
选择器作为 bootstrap 按钮元素。我从数据库中获取颜色代码。输入元素根据颜色选择器显示正确的颜色。但是 bs 按钮总是显示 ffffff
代码。任何人都可以向我解释以下代码的错误。
<button type="submit" class="jscolor"><%=pc.getName()%></button>
<input type="text" class="jscolor" value=<%=pc.getName()%>>
尝试更改按钮 class、
<button class="jscolor {value: '<%= pc.getName()%>'}"></button>
看看下面的例子link。