Alert(id) is returning nothing when used in a table. When I use jquery selectable on "OL" tag it returns the id of the "li", when I change the "ol selectable" to "table selectable", it starts showing empty in the alert message. Do I need to anything different when using table with a jquery UI selectable versus "ol" . Please suggest.
$("#selectable").selectable({ selected: function (event, ui) { var id = $(ui.selected).attr("id"); var color = $(ui.selected).css("border-color"); alert(id); } });