Ok, you want to click on the first 'a' and active the same duplicated in the 'ul' :
Bootply : http://www.bootply.com/134054
JS :
$( "a.toggle" ).click(function() {
$(".linkto a.toggle[data-target=#collapsed1]").toggleClass( "active" );
});
or :
$(".linkto a.toggle[data-target="+$(this).attr('data-target')+"]").toggleClass( "active" );