[jQuery] Re: Selector Syntax, new to jQuery

2009-07-02 Thread NauticalMac
Answering my own question. Missed the optional 'context' parameter on the basic jQuery command. Works as advertised/expected. On Jul 2, 6:39 am, NauticalMac wrote: > Starting to use jQuery having read 'jQuery in Action'. > Came across the following s

[jQuery] Selector Syntax, new to jQuery

2009-07-02 Thread NauticalMac
Starting to use jQuery having read 'jQuery in Action'. Came across the following sysntax for sortable tables: $('table.sortable').each(function() { var $table = $(this); $('th', $table).each(function(column) . Clearly the $('th', $table).each syntax results in traversing 'th

[jQuery] Re: Newbie question

2009-07-02 Thread NauticalMac
$(selector1, selector2).click(function(){}) http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN e.g. $('td, th').click(function(){alert("clicked table cell");}); Colin On Jul 2, 6:09 am, Alexandru Adrian Dinulescu wrote: > Hello. > > I am trying to do something like this > $(el