Click here to Skip to main content
15,888,018 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want a jquery code so pls send me jquery
Posted
Comments
Mitchell J. 6-Mar-14 3:21am    
Well, we don't write code for you, so this isn't really a question.
Have you tried anything yourself?
Vedat Ozan Oner 6-Mar-14 3:31am    
google answers this question in 0.32 seconds: https://www.google.com.tr/#q=how+to+use+accordion+using+jquery+in+asp.net+including+css+stylesheet

Here we answer specific questions which members face during programming.

We can't work on the whole source code. You need to do that yourself.
If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario.

Members will be happy to help you then.

Happy Coding. :)
 
Share this answer
 
First of all if you are using AS.NET (C#/VB),in the bundle.cofig file the Jquery UI are bundled
C#
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                      "~/Content/themes/base/jquery.ui.core.css",
                      "~/Content/themes/base/jquery.ui.resizable.css",
                      "~/Content/themes/base/jquery.ui.selectable.css",
                      "~/Content/themes/base/jquery.ui.accordion.css",
                      "~/Content/themes/base/jquery.ui.autocomplete.css",
                      "~/Content/themes/base/jquery.ui.button.css",
                      "~/Content/themes/base/jquery.ui.dialog.css",
                      "~/Content/themes/base/jquery.ui.slider.css",
                      "~/Content/themes/base/jquery.ui.tabs.css",
                      "~/Content/themes/base/jquery.ui.datepicker.css",
                      "~/Content/themes/base/jquery.ui.progressbar.css",
                      "~/Content/themes/base/jquery.ui.theme.css"));
      }

So in your view page add the reference at the top as the css reference is preferred to be placed at top.

@Styles.Render("~/Content/css")
//style reference

Take a div tag give it an id as "acordian"


and then write your code for the acordian in the script tag.


C#
$('#acordian').acordian()


Hope this helps .
Happy coding SD's :)

 
Share this answer
 
Hey Buddy,

This Accordion is provided by jQuery itself:

http://jqueryui.com/accordion/[^]

Click on View Source and copy the code.

Here also Demo and Source Code both are available:

http://viralpatel.net/blogs/create-accordion-menu-jquery/[^]

Here also Code is available along with a Demo:

http://css-tricks.com/snippets/jquery/simple-jquery-accordion/[^]

Accept answer if it helps you
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900