Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi,
How do I programmatically (in a JSP) set as 'selected' an item in a dropdown? Following is my code.
<cq:include path="./country" resourceType="foundation/components/form/dropdown" />
I have a list of countries in the dropdown and want a country to be selected based on a value passed to the JSP.
Thank you.
Cheers,
Viren.
Solved! Go to Solution.
You can extend the component and add a method to set the dropdown based on value that you pass to it. All components are just JavaScript code.
View solution in original post
Views
Likes
Replies
Like