Avatar of zachvaldez
zachvaldezFlag for United States of America

asked on 

Jquery-please explain code

I was researching how to stay in same tab after click  on my code behind button and I came across these 2 possible solutions but
implementing causes a javascript runtime error
'Object expected'

1)          $($respTabs.find('.resp-tab-item.' + options.tabidentify)[tabNum]).addClass('resp-tab-                     active').css({
                'background-color': options.activetab_bg,
                'border-color': options.active_border_color
            });

Open in new window


2)
        $(document).ready(function () {
            $("#HorizontalTab").bind('tabsselect', function (event, ui) {
                window.location.href = ui.tab;
            });
        });

Open in new window


These are jquery codes and maybe the jquery and javaScript experts can help read and implement these correctly what it does. Thanks
JavaScriptjQuery

Avatar of undefined
Last Comment
Julian Hansen
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of zachvaldez
zachvaldez
Flag of United States of America image

ASKER

Thanks! I really need to understand and need to break down further details of it and am confident you can be of tremendous help and thanks more on your patience in advance.
In the example I showed you $respTabs is the  control is?
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

I am not sure of what you are asking?
Avatar of zachvaldez
zachvaldez
Flag of United States of America image

ASKER

I'm not sure what's $RespTabs is if it is the control object.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

You have only provided a small bit of code - in order to answer that question we would need to see where it is defined.
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo