Home | Trees | Indices | Help |
|
---|
|
object --+ | InputMixin --+ | object --+ | | | etree._Element --+ | | | etree.ElementBase --+ | | | object --+ | | | | | HtmlMixin --+ | | | HtmlElement --+ | InputElement
Represents an <input> element.
You can get the type with .type (which is lower-cased and defaults to 'text').
Also you can get and set the value with .value
Checkboxes and radios have the attribute input.checkable == True (for all others it is false) and a boolean attribute .checked.
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
checkable Boolean: can this element be checked? |
|||
checked Boolean attribute to get/set the presence of the checked attribute. |
|||
type Return the type of this element (using the type attribute). |
|||
value Get/set the value of this element, using the value attribute. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
checkableBoolean: can this element be checked?
|
checkedBoolean attribute to get/set the presence of the checked attribute. You can only use this on checkable input types.
|
typeReturn the type of this element (using the type attribute).
|
valueGet/set the value of this element, using the value attribute. Also, if this is a checkbox and it has no value, this defaults to 'on'. If it is a checkbox or radio that is not checked, this returns None.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 9 18:29:53 2020 | http://epydoc.sourceforge.net |