jquery accordion
<script>
$(function() {
$('.faqAnswer').slideUp(); // for content
$(".faqTitle").on( "click", function() { // for title
var x = $(this).next();
$('.faqAnswer').not(x).slideUp();
$(this).next().slideToggle(200);
});
});
</script>
Also in JavaScript:
- javascript sort array of ints
- js hangman with repeated characters
- redux saga fetch json
- mm dd yyyy how to get date in this format in javascript
- Write a javascript function that takes two arguments and should either sum them or just print the first one if the second one is undefined. If both are undefined print "No numbers given"
- Turn on modern JS by adding use strict to your script
- how to change package name in react native
- javascript shift
- tip in js
- how to get timestamp in javascript of a date object
- Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (79)
- string json to object c#
- Add object to array javascript
- javascript detect dark mode
- how to get name array value checked in jquery
- jquery ready
- javascript circular evaluation
- jQuery create div element
- Appending the option element using jquery each function
- javascript promise.all
- javascript clone array of objects
- jquery replace multiple words
- jQuery check a radio button
- stop a video jquery