Hi and thanks for taking a moment. I have some Javascript that currently does in fact fire on the change event of a dropdown list. I want to simply hide or make visible certain tabItems within my tabstrip control based on the selected value from my dropdown.
I am hoping that I am close but I need a bit of help trying to locate the correct tab item and controlling its visibility. I have tried doing this with C# server side code but I can never seem to get exactly what I'm looking for.If anyone has any suggestions it would be much appreciated.My Javascript is below.
Jason
Code: JavaScript
function ToggleDamageandTheftTabs() {
//Get the tabstrip fine
var tabStrip = eo_GetObject('TabStrip1.ClientID');
//Gets the dropdown and selected value fine
var typelossvalue = document.getElementById('ddlTypeLoss');
var myvalue = typelossvalue.options[typelossvalue.selectedIndex].value;
if (myvalue == "DAMAGE") {
//Need the correct code to tap into tabstrip object and find the correct item
tabStrip.
}
}