How do you disable a jQuery UI Combobox? -


i'm trying disable jquery ui combobox i've created. have searched, come nothing works yet.

here's 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 , tried best answer have found @ 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);   

. looked going right direction. able disable "box1", can't seem mine. yet, combobox() little later in inception, being jquery 11. may have nothing it.

while doesn't technically answer specific question, urge spend little time learning "chosen." it's jquery plugin, , of you're after. on top of that, learning jquery plugin idea. there's lots of other ones out there.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -