My setup: jQuery 1.6.2, jQuery UI 1.8.15
I got the selectable interaction to work but unfortunately anchors in the element itself are not active. Here's a snippet of the code I'm working with
<ul id="selectable">
<li>John Doe
<br/>(111) 222-3333
<br/><a href="mailto:[email protected]">[email protected]</a>
<br/>
<a href="/comments?user=15">3 comments</a>
<br/>
<br/>
<a href="/users/15/edit">Edit</a>
<a href="/users/15" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Delete</a>
<hr/>
</li>
<li>Jane Smith
<br/>(222) 333-4444
<br/><a href="mailto:[email protected]">[email protected]</a>
<br/>
<a href="/comments?user=17">1 comment</a>
<br/>
<br/>
<a href="/users/17/edit">Edit</a>
<a href="/users/17" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Delete</a>
<hr/>
</li>
</ul>
As @fehays indicated, I want the anchors to simply behave like anchors inside of the selectable li. I figure I should be able to do that in this block of code but I don't know exactly what
<script>
$(function() {
$( "#selectable" ).selectable({
selected: function(ev, ui) {
//insert code here?
}
});
});
</script>