Home > Software engineering >  How VB webbrowser for web controls <input> attribute changes, increase?
How VB webbrowser for web controls <input> attribute changes, increase?

Time:11-14

The following web page code, I want to use VB webbrowser for & lt; Input & gt; Increase in into the item properties,

(if there are original, I know how to change, mainly not if not, how to add)


 











Hope to

 

(no need to worry about below)





So how to increase stext svalue both in





CodePudding user response:

This is difficult to?

CodePudding user response:

Using the setAttribute method
 Webbrowser1. Document. All. TxtTradeId. SetAttribute (" stext ", "textile and garment, shoes and hats manufacturing") 
Webbrowser1. Document. All. TxtTradeId. SetAttribute (" svalue ", "73535484-966")



Use the jquery method is:
 $(' # txtTradeId). Attr ({' stext ':' textile and garment, shoes and hats manufacturing ', 'svalue' : '73535484-966'}); 

How to implement the above js code? Through Webbrowser1. Document. ParentWindow. ExecScript "XXXXXXX" method to invoke

CodePudding user response:

Thanks the webmaster, you back to the ah, this morning I was so sleepy yesterday that don't come, with the partial barrel, also has realized the
Is found with other selection box, in a web page is the default choice, or & lt; . Stext svalue> These two properties,


Change other device ID, I want to change the ID of the element is the assigned to stext and svalue, normal submit again, also can realize,


I don't know this kind of practice for any shortage?


That's foundation is not solid or technology not slant tips, is cracked software ads, remove not, just set width of 0.