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.
|
|||
value Get/set the value of this element, using the value attribute. |
|||
type Return the type of this element (using the type attribute). |
|||
checkable Boolean: can this element be checked? |
|||
checked Boolean attribute to get/set the presence of the checked attribute. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
Get/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. |
Boolean attribute to get/set the presence of the checked attribute. You can only use this on checkable input types. |
|
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.
|
typeReturn the type of this element (using the type attribute).
|
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.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Feb 6 20:30:22 2011 | http://epydoc.sourceforge.net |