You can use ui-state-disabled
class to disable any element. This class is added by jQM to disabled with disabled="disabled"
attribute.
It can be added to form
.
$("#form").addClass("ui-state-disabled");
By element, i.e. input
, it should be added to parent div as input
are wrapped in div upon creation.
$("input").closest("div").addClass("ui-state-disabled");