Select By ID $("#MyID");
Select By Class $(".myClass"); # indicates an ID while . indicates a class. It's documented somewhere, I just know it. On 7/16/07, Bil Corry <[EMAIL PROTECTED]> wrote:
Richard D. Worth wrote on 7/14/2007 8:06 AM: > Just a few to start with. Please add any questions you've seen come up a > lot. Two questions I had when starting with jQuery, and glancing through the API docs, I still don't see them documented (maybe in a tutorial?): (1) How do you select an element by its ID? (2) How do you select all elements given a CSS class? Seems like they should be included on the "Selectors" page. - Bil
-- -- http://cjordan.us