How to disable the Dropdown?


Tags: jquery,html5,css3,jquery-mobile,ios6

Problem :

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.



Solution :

$('select').selectmenu('disable');

Read more about it here: http://jquerymobile.com/demos/1.2.0/docs/forms/selects/methods.html

Working example: http://jsfiddle.net/Gajotres/dEXac/


    CSS Howto..

    How to make `margin: top;` based on browser height?

    How can you create a cross browser css menu that doesnt require you to provide a style for EVERY LEVEL of the menu

    how to remove and add css class to a specific textbox inside gridview in c# asp.net?

    HTML layout with vertical divider and menu between sections - how?

    How do I make effect like this on image hover?

    How to get these timestamps, which come after in the html, to float right on the same line

    How center an absolute element (img) that's wider than its parent div?

    How to target last TD cell?

    hovering over list item, only one item showing up instead of all

    How Do I Limit Scrolling to a Fixed Div?

    Show nested list on click in Joomla (1.7.0)

    how to make a floating div disappear for smaller screens?

    How to add a css transition color change for a link/div background

    How to add css only to options page of a plugin in wordpress?

    How to index star rating in google?

    How do I return all CSS properties applied to an element by an external stylesheet class (not get computed styles!)?

    How do I prevent this double hover?

    Slideshow won't accept fixed height

    css - how to remove inherited style

    How can I place two DIVs inside a horizontal fixed header and make all the content vertically align?

    Hide/Show Div Depending on Screen Width

    How to separate settings and css in a less?

    css how to select a class in another div

    how to disable the highlighting view on selection either in html or css?

    How does jQuery's toggle function work, how to write it in javascript without jquery?

    How do I create a CSS class Union?

    How do I move the background image of a DIV based on the scrollbar movement?

    How to add 2 jScrollPane to my page and each one has different CSS?

    How can I get these Bootstrap column divs to be uniform length inside of a well?

    how to place the images exactly in menu position