Currently i have a selectable table which i can drag and select tds in a column. However i would like to get all the values from each of this td cells. How do i go about doing this? i have tried .each() but it still does not work
<style type="text/css">
.ui-selecting { background: #FECA40; }
.ui-selected { background: #F39814; }
</style>
<script>
$(function() {
$("table").selectable({
filter: ".tdItem"
});
});
</script>
</head>
<body>
<table width="100%" border="1">
<%
for(String t: time){
out.println("<tr>");
int i=0;
for(String room: rooms){
out.println("<td class='tdItem' align='center'>");
out.println(room+" "+t);
out.println("</td>");
i++;
}
out.println("</tr>");
}
%>