2022.2

Table Of Contents
height()
Getsorsetstheouterheight,includingpaddingandborders,ofanHTMLelement,orofthefirstele-
mentinaresultset(see"results"onpage1301),i.e.thesetofHTMLelementsthatmatchtheselector
ofthescriptorofanotherqueryinthetemplate(see"query()"onpage1197).
height(): Number
Returnstheouterheightofthiselement,includingpaddingandborders,excludingmargins.Toinclude
margins,callheight(true).
Thereturnedvalueistheheightinpixels,withoutmeasurementunit(e.g.400).
height(value): void
Setstheouterheightofthiselement,includingpaddingandborders,excludingmargins.Toinclude
margins,callheight(value, true).
value
Number.Givetheheightinpixels,butwithoutthemeasurementunit(e.g.400,not400px).
Examples
Thisscriptadds20pixelstothewidthandheightofanelement.
var h = results.height();
var w = results.width();
h = h + 20;
w = w + 20;
results.height( h );
results.width( w );
Thefollowingscriptdoesthesame,butinthiscase,marginsareincluded.
var h = results.height(true);
var w = results.width(true);
h = h + 20;
w = w + 20;
results.height( h, true);
results.width( w, true);
hide()
HidesoneormoreHTMLelements,whichcanbe:
Page 1256