webpage dropdown menu in a container - vba control

tomcatonnet99

Board Regular
Joined
Jan 30, 2011
Messages
73
Got this intranet website only accessible at work( so unable to provide link) but I've included the html code relevant to a drop down menu. I'm unable to get a handle on it , have tried by class, name tag, and id using.getelement/s method. There are two such drop down boxes and strangely enough they both share the same class, id etc
How could I get the value of the drop down within a container to "XXF" or "AKL" ( as seen in the code pls)

Would appreciate your kind assistance..
Regds
Tom
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Code:
[CODE]<div ng-include="'/dataElementListField.html'" class="ng-scope">

  <div class="select2-container form-control data-el-entry ng-scope ng-valid ng-dirty ng-valid-required" id="s2id_ckptFormSrvaCdList" style="width: auto"><a href="javascript:void(0)" *******="return false;" class="select2-choice" tabindex="-1">   <span class="select2-chosen">AKL</span><abbr class="select2-search-choice-close"></abbr>   <span class="select2-arrow"><b></b></span></a><input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen2"></div><select class="form-control data-el-entry ng-scope ng-valid select2-offscreen ng-dirty" data-ng-change="onChangeHandler(de); isChanged(); evaluate(checkpointMap.remark)" data-ng-model="de.value" bo-id="pagePrefix + 'Form' + de.code + 'List'" style="width: auto" data-ng-disabled="de.isDisabled" name="list_SrvaCd" data-ui-select2="{formatNoMatches:null, selectOnBlur:true, dropdownAutoWidth: true}" id="ckptFormSrvaCdList" tabindex="-1">

    <!-- ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="AKL" class="ng-scope">AKL</option><!-- end ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="XXF" class="ng-scope">XXF</option><!-- end ngRepeat: val in getValueList(de) -->

  </select>

</div>
[/CODE]
 
Upvote 0
Sorry trying to attach html from phone...


<div ng-include="'/dataElementListField.html'" class="ng-scope">

<div class="select2-container form-control data-el-entry ng-scope ng-valid ng-dirty ng-valid-required" id="s2id_ckptFormSrvaCdList" style="width: auto"><a href="javascript:void(0)" *******="return false;" class="select2-choice" tabindex="-1"> <span class="select2-chosen">AKL</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow"><b></b></span></a><input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen2"></div><select class="form-control data-el-entry ng-scope ng-valid select2-offscreen ng-dirty" data-ng-change="onChangeHandler(de); isChanged(); evaluate(checkpointMap.remark)" data-ng-model="de.value" bo-id="pagePrefix + 'Form' + de.code + 'List'" style="width: auto" data-ng-disabled="de.isDisabled" name="list_SrvaCd" data-ui-select2="{formatNoMatches:null, selectOnBlur:true, dropdownAutoWidth: true}" id="ckptFormSrvaCdList" tabindex="-1">

<!-- ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="AKL" class="ng-scope">AKL</option><!-- end ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="XXF" class="ng-scope">XXF</option><!-- end ngRepeat: val in getValueList(de) -->

</select>

</div>
 
Last edited:
Upvote 0
Code:
<div ng-include="'/dataElementListField.html'" class="ng-scope">

  <div class="select2-container form-control data-el-entry ng-scope ng-valid ng-dirty ng-valid-required" id="s2id_ckptFormSrvaCdList" style="width: auto"><a href="javascript:void(0)" *******="return false;" class="select2-choice" tabindex="-1">   <span class="select2-chosen">AKL</span><abbr class="select2-search-choice-close"></abbr>   <span class="select2-arrow"><b></b></span></a><input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen2"></div><select class="form-control data-el-entry ng-scope ng-valid select2-offscreen ng-dirty" data-ng-change="onChangeHandler(de); isChanged(); evaluate(checkpointMap.remark)" data-ng-model="de.value" bo-id="pagePrefix + 'Form' + de.code + 'List'" style="width: auto" data-ng-disabled="de.isDisabled" name="list_SrvaCd" data-ui-select2="{formatNoMatches:null, selectOnBlur:true, dropdownAutoWidth: true}" id="ckptFormSrvaCdList" tabindex="-1">

    <!-- ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="AKL" class="ng-scope">AKL</option><!-- end ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="XXF" class="ng-scope">XXF</option><!-- end ngRepeat: val in getValueList(de) -->

  </select>

</div>
 
Upvote 0
<!-- ngRepeat: val in getValueList(de)--><!-- end ngRepeat: val in getValueList(de)--><!--end ngRepeat: val in getValueList(de) -->
Code:
div ng-include="'/dataElementListField.html'" class="ng-scope"

div class="select2-container form-control data-el-entry ng-scope ng-valid ng-dirty ng-valid-required" id="s2id_ckptFormSrvaCdList" style="width: auto"><a href="javascript:void(0)" *******="return false;" class="select2-choice" tabindex="-1">   <span class="select2-chosen">AKL</span><abbr class="select2-search-choice-close"></abbr>   <span class="select2-arrow"><b></b></span></a><input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen2"></div><select class="form-control data-el-entry ng-scope ng-valid select2-offscreen ng-dirty" data-ng-change="onChangeHandler(de); isChanged(); evaluate(checkpointMap.remark)" data-ng-model="de.value" bo-id="pagePrefix + 'Form' + de.code + 'List'" style="width: auto" data-ng-disabled="de.isDisabled" name="list_SrvaCd" data-ui-select2="{formatNoMatches:null, selectOnBlur:true, dropdownAutoWidth: true}" id="ckptFormSrvaCdList" tabindex="-1">

    <!-- ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="AKL" class="ng-scope">AKL</option><!-- end ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="XXF" class="ng-scope">XXF</option><!-- end ngRepeat: val in getValueList(de) -->
  </select>
</div>




Would appreciate help
 
Last edited:
Upvote 0
Code:
div ng-include="'/dataElementListField.html'" class="ng-scope"

div class="select2-container form-control data-el-entry ng-scope ng-valid ng-dirty ng-valid-required" id="s2id_ckptFormSrvaCdList" style="width: auto"><a href="javascript:void(0)" *******="return false;" class="select2-choice" tabindex="-1">   <span class="select2-chosen">AKL</span><abbr class="select2-search-choice-close"></abbr>   <span class="select2-arrow"><b></b></span></a><input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen2"></div><select class="form-control data-el-entry ng-scope ng-valid select2-offscreen ng-dirty" data-ng-change="onChangeHandler(de); isChanged(); evaluate(checkpointMap.remark)" data-ng-model="de.value" bo-id="pagePrefix + 'Form' + de.code + 'List'" style="width: auto" data-ng-disabled="de.isDisabled" name="list_SrvaCd" data-ui-select2="{formatNoMatches:null, selectOnBlur:true, dropdownAutoWidth: true}" id="ckptFormSrvaCdList" tabindex="-1">

    <!-- ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="AKL" class="ng-scope">AKL</option><!-- end ngRepeat: val in getValueList(de) --><option bindonce="" data-ng-repeat="val in getValueList(de)" bo-value="valueListVal(val)" bo-text="valueListDesc(val)" value="XXF" class="ng-scope">XXF</option><!-- end ngRepeat: val in getValueList(de) -->
  </select>
</div>
 
Upvote 0
Code:
<div class="select2-drop select2-display-none select2-with-searchbox select2-drop-auto-width select2-drop-active" id="select2-drop" style="left: 390px; top: 161px; bottom: auto; display: block; width: 206px;">   <div class="select2-search">       <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input">   </div>   <ul class="select2-results"><li class="select2-results-dept-0 select2-result select2-result-selectable ng-scope select2-highlighted"><div class="select2-result-label"><span class="select2-match"></span>AKL</div></li><li class="select2-results-dept-0 select2-result select2-result-selectable ng-scope"><div class="select2-result-label"><span class="select2-match"></span>XXF</div></li></ul></div>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top