Jel - JavaScript Enhancement Library API Documentation Prototype Extension Form. Element |
Form. ElementExtensions to Prototype’s Form.Element class Summary
setValue
Sets the value of a form element to a given value, regardless of the type of control it is Parameters
CreditForm.Element code is based on Form.Element.setValue in prototypeUtils.js from http://jehiah.com/ Licensed under Creative Commons. Version 1.0 December 20 2005 Example |
Sets the value of a form element to a given value, regardless of the type of control it is
Form.Element.setValue = function( element, value )
Checks whether a given form element is a select
Form.Element.isSelect = function( element )
Checks whether a given form element is a textarea
Form.Element.isTextArea = function( element )
Checks whether a given form element is an input of type text
Form.Element.isInputText = function( element )
Checks whether a given form element is an input of type hidden
Form.Element.isInputHidden = function( element )
Checks whether a given form element is an input of type radio
Form.Element.isInputRadio = function( element )
Checks whether a given form element is an input of type checkbox
Form.Element.isInputCheckbox = function( element )