0

I have been using this carousel to load images dynamically in my homework project of ASP .NET. In the documentation of this carousel , there is an option called "activeClassName" which is used to get the center item (if I have interpreted it correctly) but still I am unable to get this class in my ASPX file where I have written my javascript code since I am new to Jquery as well as javascript. I have searched through net and still I could get as far as making an object of a class like this:

a = new classA;

Can somebody give me any example of how to use this option please?

1
  • Cliche or not... I am eager to learn something new and would be glad if you helped.. :) Commented Oct 16, 2012 at 13:08

1 Answer 1

1

If you read the comment in the following code (from the site you linked)

$("#waterwheelCarousel").waterwheelCarousel({
     // include options like this:
     // (use quotes only for string values, and no trailing comma after last option)
     // option: value,
     // option: value
 });

They tell you how to do it :)

So basically,

$("#waterwheelCarousel").waterwheelCarousel({
     activeClassName: 'yourclassname'
 });

will do the trick.

Sign up to request clarification or add additional context in comments.

2 Comments

I know to write the class name which I want in the js file but I need to access this class in my view file in which i have linked this js file .... Could you tell me how can i do that?
You would then find the current item with jquery using var currentItem = $(".yourclassname');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.