Skip to content

Instantly share code, notes, and snippets.

@adamlogic
Created December 23, 2010 16:37
Show Gist options
  • Save adamlogic/753221 to your computer and use it in GitHub Desktop.
Save adamlogic/753221 to your computer and use it in GitHub Desktop.
$(function() {
$('#summaries tr').live('click', clearDetail).live('click', selectRow);
$('form#search').submit(clearSummaries);
function clearDetail(e) {
$('#detail').empty();
}
function clearSummaries(e) {
$('#summaries').empty();
}
function selectRow(e) {
$(this).closest('table').find('tr.selected').removeClass('selected');
$(this).addClass('selected');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment