How to disable the Dropdown?


I am using JqueryMobile-1.3.0 and cordova-2.1.0 for iOS app.I want to disable the dropdown dynamically how to do that?I am doing like this $('#assignedToDropDown').attr('disabled', true); Using this it will become disable but it will look like active element means disable element css is not getting applied on this.

Problem courtesy of: snehad



Read more about it here:

Working example:

Solution courtesy of: Gajotres


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.