TabControl or TabPanel

Add-in Express™ Support Service
That's what is more important than anything else

TabControl or TabPanel
Georges DEME

Posts: 18
Joined: 2017-03-07

How to get the input element "Hold Parcel" inside of the TabControl or TabPanel "Hold" ?

<div class="k-tabstrip-wrapper">
<div class="k-widget k-tabstrip k-header k-floatwrap k-tabstrip-top" id="RootTab" data-role="tabstrip" tabindex="0" role="tablist">

  • <span class="k-loading k-complete"/>
    <a class="k-link" href="#RootTab-1">Hold</a>

  • <span class="k-loading k-complete"/>
    <a class="k-link" href="#RootTab-2">Void</a>

<div class="k-content k-state-active" id="RootTab-1" style="display: block;" role="tabpanel" aria-expanded="true">
<div class="container">
<div id="mainFrame" style="padding-top: 40px;">
<input name="Command" type="submit" value="Hold Parcel"/>
<input name="Command" type="submit" value="New"/>
<input name="Command" type="button" value="Traveler" onclick="OpenTraveler('LPKEN000000214228000')"/>
<div class="k-content" id="RootTab-2" role="tabpanel" aria-hidden="true" aria-expanded="false">


Posted 30 Mar, 2017 16:16:12 Top
Andrei Smolin

Add-in Express team

Posts: 18421
Joined: 2006-05-11
Hello Georges,

Every mshtml.HTML*Element class provides the getElementsByTagName()method. You use the mshtml object model to navigate to a control and call the getElementsByTagName() method on the control's class. Alternatively, you can call this method on HTMLDocument itself. The method returns a list of input elements; find an example at Then you scan the list and find the element required.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 31 Mar, 2017 03:19:28 Top