Re: set a selected items

Home Forum General set a selected items Re: set a selected items



for instance, let’s say we have a drop-down with the following items:




is there a way to dynamically set the selected item(s)? if, for instance, the user is a reviewer and trying to look over a form someone had previously filled out, how can we set the previously selected item in the drop-down?

another example would be if the person had previously selected states from a u.s. state’s list input. if they went in to adjust their answers at a later time, how can we set those previously selected states again?

essentially, is there a way to access the “selected” property of drop-down and list objects programmatically so we can say “set item ‘cat’ as selected” or “set items ‘ohio’,’texas’, and ‘new york’ as selected”?



Do NOT follow this link or you will be banned from the site!