How can I retrieve the "id=" parameter?
The following will retrieve the text in a table cell.
$("td.room").click(function() {
var room = $(this).text();
Instead of the text how can I retrieve the value associated with "id="?
For example <td class="room" id="yyy">aaaaa</td>
$(this).text(); will retrieve aaaaa
I want to retrieve "yyy".
Is there a better way to do what I want? When a cell is clicked I want a non displayed value passed back to the script.