I'm trying to disable a jQuery UI combobox I've created. I have searched, but come up with nothing that works yet.
Here's some JSFiddle:
...
$(function() {
$( "#userInfo" ).combobox();
$( ".custom-combobox-input").attr("placeholder", "(Pay Band GS 1-15/rank)");
$( "#userInfo input" ).attr('disabled', true);
$( "#userInfo button" ).attr('disabled', true);
});
that I've programmed and tried the best answer I have found at ComboBox disable:
...
$("#box3").combobox(); // init autocomplete combobox 3
// set initial state of generated combobox 2
$("#test2 input").attr('disabled',true);
$("#test2 button").attr('disabled',true);
// set initial state of generated combobox 3
$("#test3 input").attr('disabled',true);
$("#test3 button").attr('disabled',true);
. It looked like it was going the right direction. I was able to disable their "box1", but can't seem to do it with mine. Yet, my combobox() is a little later in its inception, being jQuery 11. But that may have nothing to do with it.