selectable filter noob help

selectable filter noob help


Hi,
I have tried to get the filter working in the selectable , but
don't really know what I'm dong.
I get an error elem is undefined jquery.js line 1279 which I guess is
because my filter is up the ying yang
I am using jQuery UI Selectable 1.7.1 and django
here's the code
<script type="text/javascript">
$(function() {
     $("#selectable").selectable();
});
$('.select_me').selectable({ filter: 'h3' });
//getter
var filter = $('.select_me').selectable('option', 'filter');
//setter
$('.select_me').selectable('option', 'filter', 'h3');
// this selects the things I want to be in the selectable
// $(function(){
// $(".select_me").addClass("whatever");
// });
</script>
<div id="selectable">
<table>
<tr> <th> one </th> <th> two </th><th> three </th>
</tr>
{% for a in list %}
<tr>
<td> <h3> Some Label </h3> </td>
<td> <h3 class="select_me" id="{{a.name}}" >
want_to_select_this </h3> </td>
<td> <h3> Some Other Thing </h3> </td>
</tr>
{% endfor %}
</table>
</div>
Thanks for any help