Search code examples
wordpressinsertafter

InsertAfter Not Working


I'm trying to add an arrow button on each image on this Wordpress page;

http://storyville.jonmarkoff.com/storyvillewp/our-work/

by using this code;

$( "#arrow" ).insertAfter( $( ".youtube_gallery_player a" ) );

But it doesn't seem to be working.

I'd appreciate your help.


Solution

  • I think u mean

    $('<div id="arrow"> </div>').insert...