Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Disabling form elements: misleading documentation #6528

@popolla

Description

@popolla

The current documentation reads: "All jQuery Mobile widgets can be disabled in the markup by adding the standard disabled attribute to the element, just like you would with native controls".
That's mostly untrue for disabled attributes set via JavaScript. For example, the following code doesn't work properly (the form element will be styled as enabled):

var myselect = $( "#selectfoo" );
myselect.prop( "disabled" , true );
myselect.selectmenu( "refresh" );

Same problem if you try to unset the disabled property that way.
Using attr() method instead of prop() makes no difference.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions