I have this JS set up but the tabs are only on one page. So I'd like to only run the function on that page to prevent any undefined is not a function
console errors. How can I include a conditional if
statement to this?
$(function() {
$( "#tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );
});
So, something like:
if is X page {
$(function() {
$( "#tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );
});
}