0
使用jPicker作为表单中的颜色选择器。 我所要做的就是清除其值,然后将其窗口/图标设置为“无颜色选择”状态。将jPicker字段设置为空值
我已经试过如下:
$(':input[name="color"]').val(''); //Access its value directly. (Does not affect jPicker)
2:
$.jPicker.List[0].color.active.val('hex', '', this); //Set color to black and input value to 000000, instead of empty string
3:
$.jPicker.List[0].color.active.val(null, '', this); //Does nothing
的3种方法没有一个似乎检点。 在此先感谢。
谢谢。我认为它是第二个参数中的空字符串和null之间的区别 – Carlos