문제

I am trying to add placeholder to combobox from here

This is what I tried but I am unable to see placeholder in combobox. Any suggestions please.

$("#SelectedGroup").attr("placeholder", "Your Text Here");
도움이 되었습니까?

해결책

Use .custom-combobox-input selector

$('.custom-combobox-input').attr("placeholder", "Your Text Here"); 

working example here jsfiddle

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top