Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Control object > Methods

JavaScript API: Control object > getDispElem()

Scroll Prev Next More

 

Returns a jQuery object - the element (input, textarea, select, etc.) that displays the value of the selected field with the prefix value_ (e.g., value_Make for the field Make).

Syntax

ctrl.getDispElem();

Arguments

No arguments.

Return value

Returns a jQuery object.

Example

Change width of edit box with AJAX popup using the JavaScript OnLoad event:

 

var ctrl = Runner.getControl(pageid, 'Make');
ctrl.getDispElem().css("width", "200px");

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > getValue()

JavaScript API: Control object > add CSS class

JavaScript API: Control object > remove CSS Class

JavaScript API: Control object > addStyle()

Event: JavaScript OnLoad

JavaScript API: Control object

JavaScript API