Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Change width of drop-down list object

Avatar

Former Community Member
Is it possible to programmatically change the width of a drop-down list object when the user clicks on the arrow?



I have a form that requires many drop-down lists on the left and right margins of the page. These margins are a little more than a quarter of an inch wide. The drop-down lists will have a text value that will require a width of up to three inches, but will store (and display) a one or two digit code such that the .275 inch field width will suffice.



I tried the obvious script on the click event of the drop-down -



this.width = "3in";



- with no success.
0 Replies