Home > Software engineering > How do I position specified in the vb webbrowser insert (or modify) code
How do I position specified in the vb webbrowser insert (or modify) code
Time:11-14
It is mainly used for automatic filling, solve the linkage drop-down box, Province after the success of the automatic selection, the municipal, county are need to manually click, according to , can directly use review elements, "city" level when the choice, in this enhanced a line option code,
With VB is just at the beginning of my, don't know how to use VB webbrowser insert code at the specified position, or modify ChengXiang want? Consult!
Hope to:
CodePudding user response:
W1. Document. All the tags (" option "). The Item (I). The innerHtml=W1. Document. All the tags (" option "). The Item (I). The innerHtml & amp; "& lt;/OPTION>" & "& lt; Br>
In & lt; The option value="" & gt; Choose counties & lt;/option> After add "& lt;/OPTION> Is closing tag, should be placed behind
CodePudding user response:
In addition the appendChild method this advice you use to add elements, specific usage to baidu
CodePudding user response:
WebBrowser1. Document. GetElementById (" Area "). The innerhtml="& lt; The option value="& gt; Choose counties & lt;/option> "
Didn't try and should be available
CodePudding user response:
Can be used in a web page using javascript code to implement;
CodePudding user response:
Directly do meal well,
W1. Document. All the Area. The appendChild "& lt; The option value="320100" "& gt; Wujiang city & lt;/option>"
CodePudding user response:
The first is do
Additional
You don't succeed, It is to show the effect of the text is:
Choose city & lt; Suzhou 2 OPTION value=https://bbs.csdn.net/topics/320506>