I am using ajaxtoolkit controller tab container and I want to enable or disable tabs on certain conditions.For that I have tried following both.
It throws an error as:
"Uncaught TypeError: Cannot read property 'get_tabs' of null" How I can Enable or disable tabs in jquery or javascript.
Code:
$find(ContentPlaceHolder1_TabContainer_Vendor).get_tabs()[2].set_enabled(false);
var tab = $find('<%=TabContainer_Vendor.ClientID%>');
tab.get_tabs()[2].set_enabled(false);
The problem is that tab
is null
. Therefore it is not a Object, and so it does not have any functions or attributes.
var tab = $find('<%=TabContainer_Vendor.ClientID%>');
Is not finding the object you wanted and returned null.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.