Skip to content
Loading
hide dropdown when other option click
  • Gajendra Jangid
    $('option').prop('disabled', true); 

    I've then used the hiding where it is supported in browsers using this piece of CSS...

    select option[disabled] {     display: none; }
  • when first-time application loads, two options are shown i.e. Budget and model, and on the click of one of the options,ddl shown