As it appears that once you've clicked one element, you can't click
the same named element further down, to get the tabindex keypresses
going, I've done the following:
$("#jplayer_previous").click( function() {
playListPrev();
return false;
});
$("#jplayer_next").click( function() {
playListNext();
return false;
});
$("#jplayer_previous2").click( function() {
playListPrev();
return false;
});
$("#jplayer_next2").click( function() {
playListNext();
return false;
});
So now, I have the player further down the page, and at the top, I
have
<div id="jplayer_previous2" ><a href="#">previous</a></div>
<div id="jplayer_next2"><a href="#">next</div>
All good so far for clickable links BUT... there MUST be a way of
simulating a mouse click in a div, so I can carry on with the
accesskeys (the only thing holding up going live).
I've had my head buried in various docs about jquery "click" and
javascript "onclick" etc, but nothing seems to suit. So what I need
is a function that will simulate having clicked in<div
id="jplayer_next2"><a href="#">next</div>, which then calls
playListNext()