Appending images w/jquery

I am going through a few jquery courses to improve on my skills and am trying this script

jQuery(document).ready(function($){
	//alert($(".hentry").html());

			$("p").after("whatever");
			$("p").after('<img src="./imgs/blueSideArrow.png">')

});

the whatever works just fine but the image wont show. I also tried to use

<img src="<?php echo get_template_directory_uri(); ?>/imgs/imageEtc...png">  

but that got me a 403, forbidden.
Has anyone tried this & how can i make it work. I’ll add that i have tried

/imgs
./img
../imgs
localhost...etc
& the image is there

thank you
D

Hi,

There’s nothing wrong with your code, so must be a WP thing.
Can you post a link to the page where you are having the error?

Hello Pullo. will try to put it in a live page this weekend. I suspect it was a wp issue.
D

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.