Honestly, I'm not familiar with JQuery enough to tell you whether context or get() do that. This question has just been asked a number of times previously.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On Sep 6, 2009, at 8:26 AM, iceangel89 wrote: > > jsu wondering does context or get() do that? > > On Sep 6, 6:11 pm, Jeremy Geerdes <[email protected]> wrote: >> This is because JQuery doesn't really return the html element itself, >> but a JQuery object which has the element as its property 0. So use $ >> ('#id')[0] >> >> Jeremy R. Geerdes >> Effective website design & development >> Des Moines, IA >> >> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp >> ://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com >> [email protected] >> >> Unless otherwise noted, any price quotes contained within this >> communication are given in US dollars. >> >> If you're in the Des Moines, IA, area, check out Debra Heights >> Wesleyan Church! >> >> And check out my blog, Adventures in Web Development, >> athttp://jgeerdes.blogspot.com >> ! >> >> On Sep 6, 2009, at 4:25 AM, iceangel89 wrote: >> >> >> >>> i noticed i cant seem to replace document.getElementById() with $ >>> ("#id")? >> >>> eg. var chart = new google.visualization.PieChart >>> (document.getElementById("chart")); >> >>> vs. var chart = new google.visualization.PieChart($("#chart")); // >>> fails ... even if i use context or get() > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---
