I'm currently working on enhancing the accessibility of a slider that will be featured on my website. The goal is to create an effect where, after clicking (or pressing enter) on the first slide, the focus shifts to the second slide element, allowing for seamless tabbing through the page. To achieve this, I am utilizing jQuery and the Cycle plugin.
However, I have encountered an issue: despite clicking on the first element, the second element remains hidden with display:none in JavaScript, making it inaccessible. Does anyone have suggestions on how I can resolve this? While I believe the solution should be straightforward, my attempts so far have been unsuccessful.
For reference, here is a link to my jsfiddle: http://jsfiddle.net/toplefty/nk4bgsfx/. Additionally, below are the snippets of code I have experimented with:
$('#s1').cycle({
fx: 'slideY',
speed: 300,
next: '#s1',
timeout: 0
});
$('#Goto2').on('click', function() {
$(this).parents('#s1').find('#Goto1').focus();
});
More information regarding the cycle options can be found here: http://jquery.malsup.com/cycle/options.html