Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

added 134 characters in body
Source Link
The Alpha
  • 146.6k
  • 30
  • 294
  • 313

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 e.preventDefault();
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Note: You should use preventDefault otherwise your page will jump at the top for href='#'

Here is an example,another example and this is different.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 e.preventDefault();
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example,another example and this is different.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 e.preventDefault();
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Note: You should use preventDefault otherwise your page will jump at the top for href='#'

Here is an example,another example and this is different.

added 134 characters in body
Source Link
The Alpha
  • 146.6k
  • 30
  • 294
  • 313

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 e.preventDefault();
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example example,another example example and this is different this is different.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example,another example and this is different.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 e.preventDefault();
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example,another example and this is different.

added 134 characters in body
Source Link
The Alpha
  • 146.6k
  • 30
  • 294
  • 313

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example ,another example and this is different.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example.

You can try this too

$(function(){
 $(".location").on('click', '.location_name', function(e){
 $(this).parent().siblings('p.blogentry').slideToggle();
 });
});​

Here is an example ,another example and this is different.

Source Link
The Alpha
  • 146.6k
  • 30
  • 294
  • 313
Loading
default

AltStyle によって変換されたページ (->オリジナル) /