Your selector is wrong for the .click() function.

I suggest reading up on the jquery website about how to use these: 
http://docs.jquery.com/Selectors 
  is the reference page, although perhaps a tutorial might help.

$('.according .head') should probably read $('#according a') or  
something similar, dependin gon what you're after.

-Joe

On Apr 3, 2009, at 2:28 PM, Arin Ghosh wrote:

> Update:
>
> Near line#5 in the code, I changed the value themename to mint-choc.  
> Its still not showing the panel
>
>
> On Sat, Apr 4, 2009 at 12:52 AM, redshirt <[email protected]>  
> wrote:
> Can u help me with this? I am new to jQuery and I cant able to run
> jQueryUI. heres what I did..
>
> I downloaded jQuery UI from http://jqueryui.com/download (thats all
> nothing else!) and then extracted it into a folder. Then I tried the
> index.html file in the extracted folder which runs fine, telling me
> that everything is good. Now I decided to write my own code to test
> the UI, heres what I did...
>
> ----------start------------------------------
>
> <html>
>  <head>
>    <title></title>
>    <meta content="">
>        <link type="text/css" href="css/themename/jquery- 
> ui-1.7.custom.css"
> rel="Stylesheet" />
>        <script type="text/javascript" src="js/jquery-1.3.2.min.js"></ 
> script>
>        <script type="text/javascript" src="js/jquery- 
> ui-1.7.custom.min.js"></
> script>
>        <script type="text/javascript">
>        jQuery(document).ready(function(){
>        $('.accordion .head').click(function() {
>                $(this).next().toggle();
>                return false;
>        }).next().hide();
> });
> </script>
>
>  </head>
>  <body>
> <div id="accordion">
>  <div>
>    <a href="#">First header</a>
>    <div>First content</div>
>  </div>
>  <div>
>    <a href="#">Second header</a>
>    <div>Second content</div>
>  </div>
> </div>
> </body>
> </html>
>
> -------------end------------------------------------
>
> But it is not showing the modal panel as desired.( but in the index
> page the accordian panels are appearing fine) It is in the same
> extracted folder as the index.html. I am sure that I am doing
> something wrong here. Can anyone tell me what I should do?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to