I need to do error checking on a page and it happens on the selectedtabevent. If the page errors out I need them to stay on teh current tab and not go forward until they have picked what they need to do. So I thought i could se tthe selected index but it seems not to work. Is there another way to do this?
function CheckValidation(sender, args) { var tab1 = sender.get_selectedIndex(); if (tab1 == 1) { var combo = $find('<%= ddlSoldCounty.ClientID %>'); var item = combo.get_value(); if (item = 0) { if (tab1 == 1) { //Set the selected tab back to 0 tab1.sender.set_selectedIndex == 0; } alert('You must pick a county from Drop Down List'); } } }