Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Hide a single edge of a text field

Avatar

Not applicable
Hi, I have a text field and want to be able to hide one side at a time through javascript. Is this possible?

Thanks.
2 Replies

Avatar

Not applicable
Chad,



You can try this:



this.border.getElement("edge",0).presence = "visible"; //top edge

this.border.getElement("edge",1).presence = "visible"; //bottom edge

this.border.getElement("edge",2).presence = "visible"; //left edge

this.border.getElement("edge",3).presence = "visible"; //right edge