You can also get a div by it's tag type:
 
$('div') // gets all divs.

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard D. Worth
Sent: Tuesday, October 30, 2007 8:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Get div


You can use the css id selector (#):

<div id="myDiv">Hello, World</div>
...
$("#myDiv") // finds the div with id 'myDiv'

- Richard


On 10/30/07, shapper <[EMAIL PROTECTED]> wrote: 


Hello,

How can I get use a Div given its ID?
Or I can only get it given the css class applied to it?

Thanks,
Miguel




Reply via email to