Can anyone help me please, I feel like I am so close. I need to get the value from the “A” tag selected, so I can use it later on down the page. How would you get the partial value of a selected link from links in an array? I am using an accordion. I actually don't think that makes a difference but there might be something useful that accordion has for me to use.
$('#accordion').accordion().bind( 'accordionchange', function(event,ui) {
var $this = $(this),
myTitle = $(this).find('h3 > a.title').text(),
target = $(event.target);
/* = debug code === */
console.log(['myTitle =', myTitle, 'target =', target]);
}
myTitle brings back all values in the array when I really just want it to bring back one and if I create an action in this it just applies it to the last element in the array when I want to apply it to the “a:selected” if that exists.
Any help would be appreciated. Thanks