Controlling objects' visibility through captivate's JavaScript
Hello! It seems like something that should be very easy, but I cant get it, and it's frustrating! I need to trigger visibility of an object when a button is pressed and I'd like to do it in JavaScript rather than using Actions because this functionality needs to be repeated on multiple pages.
Currently I have the following code:
var slideNum = window.cpAPIInterface.getCurrentSlideIndex(); // to get current slide number
var CC = $("#CC_text_" + slideNum); // to get a proper object name
after this I've tried a number of things to access this objects' visibility, but nothing worked so far. I thought it'd be as easy as CC.show(); or maybe setting visibilityState to "visible". What am I missing?
