Hi! I think the issue is that you are setting the selectable on the table, but - if I understand correctly - want to have the divs as selectees (to be selected). The table has quite a few child elements, but since you only want the divs with class 'ui-widget-content' to be selectees, you should use the filter option: http://jqueryui.com/demos/selectable/#option-filter
Hope that helps! On Wed, Jan 13, 2010 at 10:14 AM, Maxi326 <maxi...@gmail.com> wrote: > I am new to jQuery, so this maybe stupid. but no answer can be found > in both demo and doc, so. > > the demo shows selectable in this way. I think you all familiar with > that. > <script type="text/javascript"> > $(function() { > $("#selectable").selectable(); > }); > </script> > <ol id="selectable"> > <li class="ui-widget-content">Item 1</li> > <li class="ui-widget-content">Item 2</li> > <li class="ui-widget-content">Item 3</li> > <li class="ui-widget-content">Item 4</li> > <li class="ui-widget-content">Item 5</li> > <li class="ui-widget-content">Item 6</li> > <li class="ui-widget-content">Item 7</li> > </ol> > > Can I apply selectable to other tag like the following? > <table class="selectable"> > <tr> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > </tr> > <tr> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > </tr> > <tr> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > <td><div class="ui-widget-content"/></td> > </tr> > </table> > > I have tried it, it doesn't work. Is that result from my miss using or > is that just not possible? > thank you very much. > > -- > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > > -- Best regards, Balázs Suhajda
-- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.