i am doing this in default/index.html page in a application which extends layout.html which i think includes web2py_ajax.html . So is there any need to include any thing else.
On Mon, Dec 27, 2010 at 6:29 PM, Luther Goh Lu Feng <elf...@yahoo.com>wrote: > The syntax is correct. Is the jquery library included? > > You need to include something like > > <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></ > script> > > Also look at the javascript console for possible errors. > > > On Dec 27, 8:21 pm, Sahil Arora <sahilarora...@gmail.com> wrote: > > I tried this code to see the jquery effect. > > > > <div class="one" id="a" > onclick="jQuery('.two').slideToggle()">Hello</div> > > <div class="two hidden" id="b">World</div> > > > > but onclicking on Hello slide Toggles but nothing appears( 'world' > doesn't > > appear).Just a blank line. > > > > -- > > Sahil Arora > > B.Tech 2nd year > > Computer Science and Engineering > > IIT Delhi > > Contact No: +91 9871491046 > > Homepage-www.cse.iitd.ac.in/~cs1090213<http://Homepage-www.cse.iitd.ac.in/%7Ecs1090213> > -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046 Homepage-www.cse.iitd.ac.in/~cs1090213