【发布时间】:2014-03-22 07:15:54
【问题描述】:
我正在尝试将占位符添加到组合框 here
这是我尝试过的,但我无法在组合框中看到占位符。请有任何建议。
$("#SelectedGroup").attr("placeholder", "Your Text Here");
【问题讨论】:
标签: jquery placeholder attr
我正在尝试将占位符添加到组合框 here
这是我尝试过的,但我无法在组合框中看到占位符。请有任何建议。
$("#SelectedGroup").attr("placeholder", "Your Text Here");
【问题讨论】:
标签: jquery placeholder attr
使用 .custom-combobox-input 选择器
$('.custom-combobox-input').attr("placeholder", "Your Text Here");
这里的工作示例jsfiddle
【讨论】: