Re: Fill in internet explorer drop down box in form using com
Posted: 17 Jul 2017, 16:13
Well thanx to all your help I have come a long way.
Using the javascript above as a google chrome snippet as suggested by sancarn and creating a loop I am able to fill in almost automatically multiple forms using Chrome which was my original request so many thanx to all.
Sancarn
Many thanx
Using the javascript above as a google chrome snippet as suggested by sancarn and creating a loop I am able to fill in almost automatically multiple forms using Chrome which was my original request so many thanx to all.
Sancarn
Finally, if you want a list of options you can use this JavaScript function:
Finally, if you want a list of options you can use this JavaScript function:
Used likeCode: Select all
function getOptions(element){ var options=[] if(element.tagName!="SELECT") return [] o = element.options for(i in k){if(typeof(k[i])=="object") options.push(k[i].value)} return options }
Pls could you explain in greater detail how to use this function as I want to try and understand how you obtained the list of options you posted to me.Code: Select all
getOptions(document.querySelector('#address-main > div.sa-form > div:nth-child(4) > div > select'))
Many thanx