[Solved] Delphi 7 Webbrowser – select without value [closed]


TWebBrowser is just a wrapper for the Internet Explorer ActiveX control, so this is really an IE DOM issue, not a Delphi issue.

Try setting the select element’s selectedIndex property instead of its value property:

WebBrowser1.OleObject.Document.All.Item('year', 0).selectedIndex := 0;

The value property is what gets transmitted to the server, but only of there is an item selected to begin with.

5

solved Delphi 7 Webbrowser – select without value [closed]