reida Posted October 27, 2018 Share Posted October 27, 2018 Hello, help me please, to choose "+41 Switzerland" from the list <select name="cc" id="cc" style="width: 140px;"> <option value="1" label="+1 USA, Canada">+1 USA, Canada</option> <option value="7" label="+7 Russia, Kazakhstan">+7 Russia, Kazakhstan</option> <option value="41" label="+41 Switzerland">+41 Switzerland</option> <option value="44" label="+44 United Kingdom">+44 United Kingdom</option> <option value="49" label="+49 Germany" selected="selected">+49 Germany</option> <option value="61" label="+61 Australia">+61 Australia</option> <option value="370" label="+370 Lithuania">+370 Lithuania</option> <option value="375" label="+375 Belarus">+375 Belarus</option> <option value="380" label="+380 Ukraine">+380 Ukraine</option> <option value="992" label="+992 Tajikistan">+992 Tajikistan</option> <option value="995" label="+995 Georgia">+995 Georgia</option> <option value="998" label="+998 Uzbekistan">+998 Uzbekistan</option> <option value="43" label="+43 Austria">+43 Austria</option> <option value="994" label="+994 Azerbaijan">+994 Azerbaijan</option> </select> Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted October 27, 2018 Share Posted October 27, 2018 @reida Did you already take a look at _IEFormElementOptionSelect() ? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
reida Posted October 27, 2018 Author Share Posted October 27, 2018 FrancescoDiMuro Yes, but I cannot even make the form active Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted October 27, 2018 Share Posted October 27, 2018 @reida Post your code, so we can see how we can help you Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
reida Posted October 27, 2018 Author Share Posted October 27, 2018 (edited) Local $oForm = _IEGetObjById($oIE, "cc") _IEAction($oForm, "focus") _IEFormElementOptionSelect($oForm, "41", 1, "byValue") There is no form name therefore do on id Edited October 27, 2018 by reida Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted October 27, 2018 Share Posted October 27, 2018 @reida Add a bit of error checking, so you can see where your script is not doing what is supposed to do Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
reida Posted October 27, 2018 Author Share Posted October 27, 2018 (edited) FrancescoDiMuro Thanks, everything is all right Edited October 27, 2018 by reida Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted October 27, 2018 Share Posted October 27, 2018 @reida Happy to have helped Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now